html-insert-webpack-plugin
v1.0.1
Published
Inject script and style to html by custome rules
Maintainers
Readme
Inject extension for the HTML Webpack Plugin
This is an extension plugin for the webpack plugin html-webpack-plugin - a plugin that simplifies the creation of HTML files to serve your webpack bundles.
Installation
You must be running webpack on node 0.12.x or higher
Install the plugin with npm:
$ npm install --save-dev html-insert-webpack-pluginBasic Usage
Require the plugin in your webpack config:
var HtmlInsertWebpackPlugin = require('html-insert-webpack-plugin');Add the plugin to your webpack config as follows:
plugins: [
new HtmlWebpackPlugin(),
new HtmlInsertWebpackPlugin()
] The above configuration will actually do nothing due to the configuration defaults.
