Skip to content

web: use CSS named chunks for bundlesize observability

Administrator requested to merge vb/use-named-css-chunks into main

Created by: valerybugakov

Context

Remove content hash from CSS chunk names if WEBPACK_USE_NAMED_CHUNKS === true.

Currently, we use this env variable only for JS chunks. Having content hash in CSS chunks makes monitoring CSS bundlesize harder. See the Honeycomb dashboard.

Screen Shot 2022-08-15 at 12 46 04

Test plan

Run ENTERPRISE=1 NODE_ENV=production WEBPACK_USE_NAMED_CHUNKS=true yarn build and ensure that CSS chunk names do not include content hash.

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading