optimize-css-assets-webpack-plugin
optimize-css-assets-webpack-plugin copied to clipboard
Deprecation Warning
When I build my app with Webpack I get this deprecation warning:
(node:86841) [DEP_WEBPACK_COMPILATION_OPTIMIZE_CHUNK_ASSETS] DeprecationWarning: optimizeChunkAssets is deprecated (use Compilation.hooks.processAssets instead and use one of Compilation.PROCESS_ASSETS_STAGE_* as stage option)
(Use node --trace-deprecation ...
to show where the warning was created)
Can we get rid of this?
Agree. It's coming from last-call-webpack-plugin
.
As updates are pending, possible solution could be to use css-minimizer-webpack-plugin package.
"Just like optimize-css-assets-webpack-plugin but more accurate with source maps and assets using query string, allows to cache and works in parallel mode."
Guide: https://survivejs.com/webpack/optimizing/minifying/#setting-up-css-minification
I hit this today too when upgrading to webpack5
i facing it when upgrading to webpack 5 too.