Page MenuHomePhabricator

[lib] Replace optimize-css-assets-webpack-plugin with css-minimizer-webpack-plugin
ClosedPublic

Authored by ashoat on Feb 12 2023, 6:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 4:44 AM
Unknown Object (File)
Mon, Nov 11, 4:42 AM
Unknown Object (File)
Sat, Oct 26, 6:55 PM
Unknown Object (File)
Sat, Oct 26, 6:55 PM
Unknown Object (File)
Sep 30 2024, 11:39 AM
Unknown Object (File)
Sep 26 2024, 9:40 AM
Unknown Object (File)
Sep 26 2024, 7:59 AM
Unknown Object (File)
Sep 26 2024, 7:59 AM
Subscribers
None

Details

Summary

See the README for optimize-css-assets-webpack-plugin:

For webpack v5 or above please use css-minimizer-webpack-plugin instead.

This gets rid of a warning that was previously printing when generating a production Webpack build:

[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)

Depends on D6700

Test Plan
  1. Confirm the depercation warning goes away
  2. I ran yarn prod in landing and web (we only use this plugin in prod builds) and then tested the website by running keyserver with yarn prod-build && yarn-prod

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 12 2023, 7:02 PM
Harbormaster failed remote builds in B16353: Diff 22355!

Please ignore failing CI – it's intentional, otherwise this diff would be too big and difficult to review

This revision is now accepted and ready to land.Feb 12 2023, 7:31 PM
This revision was landed with ongoing or failed builds.Feb 12 2023, 8:08 PM
This revision was automatically updated to reflect the committed changes.