-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack 5 "BREAKING CHANGE" warning #1501
Comments
Can you please check if 4.4.0 works for you? |
@jantimon I've tested 4.4.1 (with
I ran webpack-cli directly with
|
Changing the hook would be a breaking change I guess - I'll ask the webpack core team on guidance which stage to use: https://webpack.js.org/api/compilation-hooks/#processassets I am not sure if this might cause issues with chunk hashes (as they are not known at this time) |
@jantimon FYI, having the same issue exactly with 4.4.1 + |
Here's some guidance that looks applicable: webpack/webpack#11425 |
what's progress of this issue? |
having the same issue exactly with 4.4.1 + webpack@v5.0.0-beta.30 |
Same issue with v4.4.1 and |
In the meantime, for me using v.4.4.1 and webpack v5.0.0-beta.24 is the right combo. yes build is compiling with warnings but it doesn't get stuck at |
what progress about the compatibility of webpack@5, webpack@5 have been released |
|
Can you please see if this is fixed with html-webpack-plugin@5.0.0-alpha.2 ? |
I'm still seeing it after updating to
|
yeah, it still has this issue event if update to |
Sorry I missed some parts in the last release can you please try once again with html-webpack-plugin@5.0.0-alpha.3 |
Looks like that fixes it @jantimon 👍 Previously:
Then updated with
Result now:
|
Thanks for testing 👍 |
I also have the same problem, provide reference. Environment:package.json file `
Then updated with "npm i -D html-webpack-plugin@5.0.0-alpha.3" Result now:
Doubt: |
There is no version |
Any updates on this fix/release going stable? |
한가지 이슈가 남음 (node:17981) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated. BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation. Do changes to assets earlier, e. g. in Compilation.hooks.processAssets. Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*. jantimon/html-webpack-plugin#1501
한가지 이슈가 남음 (node:17981) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated. BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation. Do changes to assets earlier, e. g. in Compilation.hooks.processAssets. Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*. jantimon/html-webpack-plugin#1501
* Minifier WA can be now dropped since the pulled cssnano version includes the fix * Adjust to new copy-webpack-plugin API. * Adjust included node modules plugin needs to webpack 5 API * Update html-webpack-plugin to remove deprecation warnings Previously we would get: BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation. See jantimon/html-webpack-plugin#1501 * Use lite cssnano preset because the default version makes problematic assumptions Note: webpack's compilation.fileDependencies has changed and the webpack-make needs to be adjusted accordingly: webpack/webpack#11971
* Minifier WA can be now dropped since the pulled cssnano version includes the fix * Adjust to new copy-webpack-plugin API. * Adjust included node modules plugin needs to webpack 5 API * Update html-webpack-plugin to remove deprecation warnings Previously we would get: BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation. See jantimon/html-webpack-plugin#1501 * Use lite cssnano preset because the default version makes problematic assumptions Note: webpack's compilation.fileDependencies has changed and the webpack-make needs to be adjusted accordingly: webpack/webpack#11971
This is still happening with webpack 5.73.0 and html-webpack-plugin 5.5.0 |
Expected behaviour
The excellent plugin should work with webpack 5 without deprecation notices
Current behaviour
Seems like the first 2 warnings are covered by #1408
Environment
Config
Template
The text was updated successfully, but these errors were encountered: