Skip to content
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

Merged
merged 1 commit into from
Dec 21, 2020
Merged

fix(v2): disables all inlining in CleanCSS #3943

merged 1 commit into from
Dec 21, 2020

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Dec 20, 2020

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.)

@lex111 lex111 added the pr: bug fix This PR fixes a bug in a past release. label Dec 20, 2020
@lex111 lex111 requested a review from slorber as a code owner December 20, 2020 12:30
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 20, 2020
@netlify
Copy link

netlify bot commented Dec 20, 2020

✔️ 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

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 91
🟢 Accessibility 99
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-3943--docusaurus-2.netlify.app/classic/

@github-actions
Copy link

Size Change: +8 B (0%)

Total Size: 155 kB

ℹ️ View Unchanged
Filename Size Change
website/build/blog/2017/12/14/introducing-docusaurus/index.html 20.7 kB -3 B (0%)
website/build/docs/introduction/index.html 180 B 0 B
website/build/index.html 5.81 kB 0 B
website/build/main.********.js 111 kB +11 B (0%)
website/build/styles.********.css 17.6 kB 0 B

compressed-size-action

@@ -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()));
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

@slorber
Copy link
Collaborator

slorber commented Dec 21, 2020

Thanks, LGTM 👍

@slorber slorber merged commit 83a5240 into master Dec 21, 2020
@lex111 lex111 deleted the lex111/iss3942 branch December 21, 2020 17:24
@lex111 lex111 added this to the v2.0.0-alpha.71 milestone Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@import, @font-face in CSS files causes builds to fail
3 participants