File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,14 @@ Install the plugin with `npm`:
1818$ npm i add-asset-html-webpack-plugin -D
1919```
2020
21- NOTE: This plugin requires ` html-webpack-plugin@^2.10.0 ` .
22-
23- ## Migrating to webpack 4+
24-
25- After webpack 4+, it is required to apply ` AddAssetHtmlPlugin ` after
26- ` HtmlWebpackPlugin ` to register ` html-webpack-plugin-before-html-generation `
27- hook which is used inside first, while previous versions of webpack do not care
28- about it.
21+ NOTE: This plugin requires ` html-webpack-plugin@^3 ` , ` html-webpack-plugin@^4 ` ,
22+ or ` html-webpack-plugin@^5 ` .
2923
3024## Basic Usage
3125
3226The plugin will add the given JS or CSS file to the files Webpack knows about,
3327and put it into the list of assets ` html-webpack-plugin ` injects into the
34- generated html. Add the plugin the your config, providing it a filepath:
28+ generated html. Add the plugin to your config, providing it a filepath:
3529
3630``` js
3731const HtmlWebpackPlugin = require (' html-webpack-plugin' );
You can’t perform that action at this time.
0 commit comments