-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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(v2): disables all inlining in CleanCSS #3943
Conversation
✔️ Deploy preview for docusaurus-2 ready! 🔨 Explore the source changes: 96562af 🔍 Inspect the deploy logs: https://app.netlify.com/sites/docusaurus-2/deploys/5fdf43faa9b16c000761e84b 😎 Browse the preview: https://deploy-preview-3943--docusaurus-2.netlify.app |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-3943--docusaurus-2.netlify.app/classic/ |
Size Change: +8 B (0%) Total Size: 155 kB ℹ️ View Unchanged
|
@@ -203,15 +203,15 @@ export function compile(config: Configuration[]): Promise<void> { | |||
const compiler = webpack(config); | |||
compiler.run((err, stats) => { | |||
if (err) { | |||
reject(err); | |||
reject(new Error(err.toString())); |
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.
Was wondering, shouldn't we use an early return here?
Or are there cases where we have both an error and stats?
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.
I don't know, I think we'll leave it as it is for now, during the migration to webpack 5, let's get back to this.
Thanks, LGTM 👍 |
Motivation
Fixes #3942
See clean-css/clean-css#914 and https://github.com/jakubpawlowicz/clean-css#inlining-options for more details.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
See To Reproduce section in #3942 issue.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)