@jaybeeuu/feed-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

feed-webpack-plugin

npm

Wraps feed in a webpack plugin so it can be used to generate and feeds and inject them into the webpack output.

Usage

const { FeedWebpackPlugin } = require("@jaybeeuu/feed-webpack-plugin");
export default {
  plugins: [
    new FeedWebpackPlugin({
      atomFileName: "feeds/atom.xml", // The file name that the Atom feed should be written to. If undefined no atom feed will be emitted.
      rssFileName: "feeds/rss.xml", // The file name that the rss feed should be written to. If undefined no rss feed will be emitted.
      feedOptions: {
        /* Options used to build the feed. Passed onto new Feed. */
      },
      items: [
        /* Items to include on the feed. Passed onto feed.addItem */
      ],
    }),
  ],
};

For more details on the options for feedOptions or items see the feed docs.

Package Sidebar

Install

npm i @jaybeeuu/feed-webpack-plugin

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

7.71 kB

Total Files

7

Last publish

Collaborators

  • jaybeeuu