GitHub - lzhengms/html-webpack-plugin-before-html-processing: html-webpack-plugin-before-html-processing

Skip to content

Navigation Menu

Sign in

Appearance settings

HTML Webpack Plugin

Installation

Install the plugin with npm:

$ npm install html-webpack-beforehtml-plugin --save-dev

Usage:

Then in `webpack.config.js`

```javascript
plugins: [
   // css: false标识不注入提取的css
  new beforeHtmlPlugin({css: false})
]

Note that the callback must be passed the htmlPluginData in order to pass this onto any other plugins listening on the same html-webpack-plugin-before-html-processing event.

License

This project is licensed under MIT.