-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
fix(core): bundler should not minimize static assets #10658
Conversation
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site configuration. |
Size Change: +225 B (0%) Total Size: 11.2 MB ℹ️ View Unchanged
|
⚡️ Lighthouse report for the deploy preview of this PR
|
Size Change: +215 B (0%) Total Size: 11.7 MB ℹ️ View Unchanged
|
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.
LMK if you need any reviews from the webpack team
Thanks for the proposal @evenstensberg This one is already merged but I can ping you on other Webpack-related things? I'm also on the Rspack discord and getting some support here, since Webpack/Rspack have somehow the same API/behavior, but another pair of eyes might be useful. |
Motivation
We are using Webpack copy-webpack-plugin to expose static assets from the
website/static
dir.These files are supposed to be exposed as-is, not being modified.
Unfortunately, we had a regression in Docusaurus v3.4 and the css/js minimizes started to be applied to these files as well. This is because I moved the copy plugin from webpack server config (minimizers disabled) to the client config (minimizers enabled):
17f3e02
(there are good reasons to do so, in particular now that the server is built into a
__server
subfolder)Test Plan
CI + added a dogfood test to prevent regressions (site failed to build before I apply the fix)
Test links
https://deploy-preview-10658--docusaurus-2.netlify.app/
Related issues/PRs
fix #10460
fix #10334