Bug Report or Feature Request (mark with an x)
- [X] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Angular CLI: 7.1.0
Node: 11.1.0
OS: darwin x64
Angular: 7.1.1
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.11.0
@angular-devkit/build-angular 0.11.0
@angular-devkit/build-optimizer 0.11.0
@angular-devkit/build-webpack 0.11.0
@angular-devkit/core 7.1.0
@angular-devkit/schematics 7.1.0
@angular/cli 7.1.0
@ngtools/webpack 7.1.0
@schematics/angular 7.1.0
@schematics/update 0.11.0
rxjs 6.3.3
typescript 3.1.6
webpack 4.23.1
Repro steps
ng new css-test
p {color: white}' > src/app/app.component.css
ng build --prod --noAot --noBuildOptimizer
The log given by the failure
At the moment, when AOT is disabled components styles are not being optimised. Ie, cleancss is not running.
So for instance the above code, it should have been minified to p {color: #fff}. But this is only happening when using the AOT compiler.
Desired functionality
Component styles should be minified both when using the JIT and AOT Compiler.
Bug Report or Feature Request (mark with an
x)Command (mark with an
x)Versions
Repro steps
ng new css-testp {color: white}' > src/app/app.component.cssng build --prod --noAot --noBuildOptimizerThe log given by the failure
At the moment, when AOT is disabled components styles are not being optimised. Ie, cleancss is not running.
So for instance the above code, it should have been minified to
p {color: #fff}. But this is only happening when using the AOT compiler.Desired functionality
Component styles should be minified both when using the JIT and AOT Compiler.