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: css out of order in a production build #38

Merged
merged 1 commit into from Dec 22, 2019
Merged

Conversation

satazor
Copy link
Collaborator

@satazor satazor commented Dec 21, 2019

The "sideEffects" property in package.json improves webpack treeshaking. However that causes the out-of-order CSS we were seeing in production builds. We may enable again once the bug is fixed.

For more context see webpack/webpack#7094 and webpack-contrib/mini-css-extract-plugin#202.

The "sideEffects" property in package.json improves webpack treeshaking. However that causes the out-of-order CSS we were seeing in production builds. We may enable again once the bug is fixed.
For more context see webpack/webpack#7094 and webpack-contrib/mini-css-extract-plugin#202.
@satazor
Copy link
Collaborator Author

satazor commented Dec 21, 2019

@ivolimasilva can you port this to the project you are working on?

@satazor
Copy link
Collaborator Author

satazor commented Dec 21, 2019

Created an issue to follow up on this: #39

@satazor satazor merged commit 8fe67b4 into master Dec 22, 2019
@satazor satazor deleted the fix/css-out-of-order branch December 22, 2019 23:07
@satazor
Copy link
Collaborator Author

satazor commented Dec 22, 2019

Reviewed and tested by @paulobmarcos in one of our internal projects.

@ebs-PriyankaKanwar
Copy link

Hello Team
I have facing issues regarding the next-CSS . I have using next-CSS but they are giving me a warning and when I removed the next-CSS from next.config file. my style CSS has not loaded chunks in the production. and my CSS is out of order in a production build.
Can you plz help me.

@gluhovroma
Copy link

@ebs-PriyankaKanwar Hello, do you fix your problem?

@satazor
Copy link
Collaborator Author

satazor commented Oct 1, 2020

In the last version, we are no longer using next-css, but instead using Next's built-in CSS support. This means there's no out-of-order errors any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants