-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build: Drop cssFilename option from root webpack config #32195
Build: Drop cssFilename option from root webpack config #32195
Conversation
023ee23
to
2f5f53a
Compare
b2ce7e2
to
2dbfa60
Compare
This seems to work fine, but I noticed two things:
|
Thanks for rebasing @scruffian!
No, that's expected --
These are also present on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retested. LGTM 🚢
b166c42
to
7d00a6a
Compare
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Webpack Runtime
Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
Thank @scruffian! I also tested this in a local wpcalypso Docker env to make sure the changed |
Changes proposed in this Pull Request
Remove the
cssFilename
option from the Calypso root webpack config, inferring its value fromoutputFilename
instead; dito forcssChunkFilename
. For more background and a rationale, see #32194, which does the same forcalypso-build
's webpack config.This also requires some re-arranging of filename logic in the webpack config.
There is one behavioral change: In production, CSS filenames previously followed the
[name].[chunkhash].css
pattern. Since they're now modeled afteroutputFilename
, they now include amin
particle, i.e.[name].[chunkhash].min.css
. AFAICS, that shouldn't really matter much though.Testing instructions
Does Calypso start and build properly?