-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
broken styles after build #10113
Comments
I and a moderator of the Discord server discovered the problem. Some of my styles use nested CSS, what is a new feature in default CSS and already implemented in SCSS. the problem is: the default CSS minimizer don't have support to nested CSS, so I'm installing the scss plugin to solve my problem. As i still think this is a problem, i will let the issue open for some mod review and give the verdict. |
Agree with have a bug, already tracked in #9303 Note CSS nesting is not yet "widely" supported. Only 81% full support, that's maybe a bit too soon to emit CSS nesting, but maybe we could at least support it as an authoring format and emit non-nested CSS (similar to what SCSS does). |
the idea of emit non nested CSS looks really good for me, but isn't so much work for docusaurus team? Like an entire css parser and etc... |
Forgot to close as duplicate
We wouldn't do this on our own but likely use PostCSS for that. https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting Since postcss-preset-env supports browserslist, we should probably use that in the future |
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.I'm working on the new Silk.NET presentation and documentation website where i was requested to use docusaurus to do it. The library never shows any error during the debugging process and the development goes well until i need to build the website, when i noticed the problem.
Most of the styles and media queries are being broken by the CSS Minimizer plugin. It logs don't help to solve any problem because the minimize is done after all the compilation, so my CSS code is unrecognizable after this.
Steps to reproduce
npm run build
npm run serve
behavior
The styles should be exactly what it is during the debug (
npm run start
)One of the best examples, the first section of the main page that is being rendered as the follow in debug:
It's being rendering as it after the build process:
environment
3.2.2
, --version:10.4.0
The text was updated successfully, but these errors were encountered: