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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular ng build prod convert all percent opacity to 1% #17516

Closed
ybarbaria opened this issue Apr 21, 2020 · 3 comments
Closed

Angular ng build prod convert all percent opacity to 1% #17516

ybarbaria opened this issue Apr 21, 2020 · 3 comments

Comments

@ybarbaria
Copy link

馃悶 bug report

Affected Package

The issue is caused by the cssnano package
related to cssnano/cssnano#881

Is this a regression?

I don't know I never used percent for opacity since today.

Description

I have some class where I defined some opacity by percent like this one :
image
After using the ng build --prod my style become :
image

馃實 Your Environment

Angular Version:


Angular CLI: 9.1.1
Node: 12.14.1
OS: win32 x64

Angular: 9.1.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.1
@angular-devkit/build-angular     0.901.1
@angular-devkit/build-optimizer   0.901.1
@angular-devkit/build-webpack     0.901.1
@angular-devkit/core              9.1.1
@angular-devkit/schematics        9.1.1
@angular/cdk                      9.1.0
@angular/cli                      9.1.1
@angular/flex-layout              9.0.0-beta.29
@angular/material                 9.1.0
@ngtools/webpack                  9.1.1
@schematics/angular               9.1.1
@schematics/update                0.901.1
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.42.0
@JoostK JoostK transferred this issue from angular/angular Apr 21, 2020
@alan-agius4
Copy link
Collaborator

Hi @ybarbaria,

As per the linked issue above this is a CSSNano bug, while the fix was merged it was not released.

Once there is a CSSNano release we'll update the package version used in the CLI. Until then, this is not actionable from our end.

Thank you.

@ybarbaria
Copy link
Author

Hi @alan-agius4 , thanks for your feedback, I thought they already release the fix my bad sorry !

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants