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, Jun 17, 3:41 PM
Unknown Object (File)
Mon, Jun 17, 3:41 PM
Unknown Object (File)
Mon, Jun 17, 3:41 PM
Unknown Object (File)
Tue, May 28, 5:38 AM
Unknown Object (File)
May 13 2024, 2:56 AM
Unknown Object (File)
May 13 2024, 2:56 AM
Unknown Object (File)
May 13 2024, 2:56 AM
Unknown Object (File)
May 13 2024, 2:51 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.