-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Post CSS processing is breaking variables on css when building app #11685
Comments
Have same issue. In dev mode it works correctly, but after build variables goes wrong, like was described |
Now I'm confused |
Could be related to this update on cssnano cssnano/cssnano#1207 |
Confirmed on eject, if I disable
|
I think you should have colormin argument outside the object of BTW, This whole issue is a life-saver for me, suddenly our website blew up in staging environment. 😁 |
|
@andres-upshow Thanks bro, I was able to fix the same issue in a nuxt.js project (lol) by editing the cssnano config. |
I was able to track the bug to some bugfix on color-string https://github.com/Qix-/color-string/issues/60 Now, if you have a way to lock versions (we have it due to rush/pnpm) lock package This whole ordeal is the thing that pops on my mind when someone complaints about the broken ecosystem that is node modules, a bugfix on a library without proper semantic versioning causes a hot potato situation that wastes everybody's time. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Describe the bug
There is some post css script changing variables like
--white
to#fff
Did you try recovering your dependencies?
Started from scratch
Which terms did you search for in User Guide?
css
, and I saw the section for post processing, but if this is intended please say so because it was working fine about 2 days agoEnvironment
Steps to reproduce
background-color: var(--white);
Expected behavior
Style background-color to be
var(--white)
Actual behavior
Style background-color is changed to be
var(#fff)
Reproducible demo
The text was updated successfully, but these errors were encountered: