Feather Webpack Plugin
Uses svgstore on the back to create the
This plugin is intended to be used with html-webpack-plugin, where the
template is the output file this package produces.
$ npm install --save feather-webpack-plugin
const FeatherPlugin = default;moduleexports =plugins:template: 'template.ejs'output: 'output.ejs'line: 1whitelist:'home';
The template will only be generated before Webpack runs (by using the
before-run plugin callback). Additional webpack compilations (with the
--watch flag) won't trigger the template creation script. This plugin is intended for templates ready for production, and as the Webpack config cannot be modified during runtime, there's no way for the plugin to check for config changes.
||The path where your template to be modified is stored. Relative to Webpack's context.|
||The path where the generated template will be stored. Relative to Webpack's context.|
||Line number where the SVG element is going to be inserted in the template file.|
||Contains the names of Feather's icons you want to insert|
Additionally, all the options supported by svgstore are passed to the internal plugin instance. Take a look at their docs.