-
-
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
Wrong grid-template-areas when minified #10329
Comments
This appears to be a cssnano bug. You can reproduce it in their playground: https://cssnano.github.io/cssnano/playground/ with the "Preset Advanced" option. Could you report the bug to them instead? |
Thanks for your reply @Josh-Cena . |
@tonai is this issue solved by now |
Nop still an issue on cssnano side. |
Please try canary and Docusaurus Faster, this should be fixed with the LightningCSS migration. |
I can confirm that this problem doesn't occur with docusaurus faster. |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
CSS value for
grid-template-areas
gets transformed during minification.I use the following CSS:
Then it gets transformed into:
e
andc
should be reversed.Also tested with
USE_SIMPLE_CSS_MINIFIER=true
btu the result is the same.I need to disable minification with
--no-minify
as a workaround.Reproducible demo
https://stackblitz.com/edit/github-rfgrzj?file=src%2Fpages%2Findex.module.css
Steps to reproduce
yarn build
build/assets/css/styles.8cc5e1e4.css
and search forgrid-template-areas
"c d" "e c"
Expected behavior
Order of areas in minified CSS should respect the original CSS declaration.
Actual behavior
Order is not respected and design is broken.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: