File tree 1 file changed +3
-9
lines changed 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`:
18
18
$ npm i add-asset-html-webpack-plugin -D
19
19
```
20
20
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 ` .
29
23
30
24
## Basic Usage
31
25
32
26
The plugin will add the given JS or CSS file to the files Webpack knows about,
33
27
and 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:
35
29
36
30
``` js
37
31
const HtmlWebpackPlugin = require (' html-webpack-plugin' );
You can’t perform that action at this time.
0 commit comments