You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,10 @@ $ npm i add-asset-html-webpack-plugin -D
22
22
23
23
NOTE: This plugin requires `html-webpack-plugin@^2.10.0`.
24
24
25
+
## Migrating to webpack 4+
26
+
27
+
After webpack 4+, it is required to apply `AddAssetHtmlPlugin` after `HtmlWebpackPlugin` to register `html-webpack-plugin-before-html-generation` hook which is used inside first, while previous versions of webpack do not care about it.
28
+
25
29
## Basic Usage
26
30
27
31
The plugin will add the given JS or CSS file to the files Webpack knows about,
0 commit comments