-
Notifications
You must be signed in to change notification settings - Fork 12k
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
CSS Variables are lost when running ng build --prod #16123
Comments
Work around seems to be changing border-top:1px solid var(--background-grey) !important; to border-top:1px solid !important; |
Here is a repo to illustrate the issue |
This is either a compiler or one of the optimization passes in CLI. @neofuture does this reproduce with v8 as well? |
Yes the same thing happens in v8 |
I don't believe that this has anything to do with the compiler because it's |
I believe you are encountering the following defect from the CSS optimizer: clean-css/clean-css#1060 As a workaround until the defect has been corrected, the section in question can be altered to add ignore comments (reference) to prevent the optimizer from altering the rule. As an example using the provided reproduction code:
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
When running ng build --prod in release candidate of Angular 9 the CSS variables are removed from some elements please see screenshots these are originally in styles.css
Development Mode
Production Mode
The text was updated successfully, but these errors were encountered: