Skip to content

Commit cf3fa7f

Browse files
JounQinSimenB
authored andcommitted
Notice about plugin order case for webpack 4+ (#103)
1 parent f3b0ea4 commit cf3fa7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ $ npm i add-asset-html-webpack-plugin -D
2222

2323
NOTE: This plugin requires `html-webpack-plugin@^2.10.0`.
2424

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+
2529
## Basic Usage
2630

2731
The plugin will add the given JS or CSS file to the files Webpack knows about,

0 commit comments

Comments
 (0)