optimize-css-assets-webpack-plugin icon indicating copy to clipboard operation
optimize-css-assets-webpack-plugin copied to clipboard

Deprecation Warning

Open fabianmarcus opened this issue 3 years ago • 3 comments

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?

fabianmarcus avatar Mar 31 '21 13:03 fabianmarcus

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

saulske avatar Apr 20 '21 18:04 saulske

I hit this today too when upgrading to webpack5

brandonburkett avatar May 24 '21 20:05 brandonburkett

i facing it when upgrading to webpack 5 too.

tiennguyen1293 avatar Nov 19 '22 17:11 tiennguyen1293