Skip to content

[6.0.0-beta.4] CSS bundling problem on prod build #9902

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

Closed
omahjoub opened this issue Mar 8, 2018 · 5 comments
Closed

[6.0.0-beta.4] CSS bundling problem on prod build #9902

omahjoub opened this issue Mar 8, 2018 · 5 comments

Comments

@omahjoub
Copy link

omahjoub commented Mar 8, 2018

Versions

Angular CLI: 6.0.0-beta.4
Node: 9.5.0
OS: darwin x64
Angular: 6.0.0-beta.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 6.0.0-beta.4
@angular-devkit/build-optimizer: 0.4.3
@angular-devkit/core: 0.4.3
@angular-devkit/schematics: 0.4.3
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 6.0.0-beta.4
@schematics/angular: 0.4.3
@schematics/package-update: 0.4.3
typescript: 2.6.2
webpack: 4.0.1

Repro steps

  • Step 1

ng serve

image

  • Step 2

ng serve --prod

image

Observed behavior

The rendering is not the same between ng serve and ng serve --prod

Desired behavior

We should have the same rendering on normal builds and prod builds.

Mention any other details that might be useful (optional)

I set up a repro project here.

All is good with angular-cli 6.0.0-beta.3

@omahjoub
Copy link
Author

omahjoub commented Mar 9, 2018

Hi @clydin thank you for paying attention to this.
May be it would helps, the final bundle with ng build --prod presents the same problem.

@bakasmarius
Copy link

I also have a similar issue:
on ng serve and ng build this css works fine: border-right: 1px solid rgb(196, 197, 199, 0.3)
but on ng serve --prod the same css looks like this: border-right: 1px solid - so the rgb property is lost for some reason.

Angular CLI: 6.1.1
Node: 10.7.0
OS: win32 x64
Angular: 6.1.0
Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.7.1
@angular-devkit/build-angular     0.7.1
@angular-devkit/build-optimizer   0.7.1
@angular-devkit/build-webpack     0.7.1
@angular-devkit/core              0.7.1
@angular-devkit/schematics        0.7.1
@angular/cdk                      6.4.1
@angular/cli                      6.1.1
@angular/flex-layout              6.0.0-beta.17
@angular/material                 6.4.1
@ngtools/webpack                  6.1.1
@schematics/angular               0.7.1
@schematics/update                0.7.1
rxjs                              6.2.2
typescript                        2.9.2
webpack                           4.9.2

@bakasmarius
Copy link

Might it be related to #9255?

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Oct 3, 2018

@bakasmarius, You issue might have been fixed by clean-css as I can no longer reproduce it.
@omahjoub, Your reproduction no longer work. If the problem persists, please open a new issue following our submission guidelines.

@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 Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants