-
Notifications
You must be signed in to change notification settings - Fork 12k
ng serve --aot not properly compiling changed css #15143
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
Milestone
Comments
Thank you @alan-agius4 ! |
vikerman
pushed a commit
that referenced
this issue
Jul 26, 2019
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. |
ikjelle
pushed a commit
to ikjelle/angular-cli
that referenced
this issue
Mar 26, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🐞 bug report
Affected Package
The issue is caused by package @angular/compiler 8.1.2
Is this a regression?
Yes, the previous version in which this bug was not present was 7.2.0. Haven't tested 7.3.x or 8.0.x
Description
When running
ng serve
with aot enabled, any changes to .css files require two compilations to have the changes reflected in the browser. Bug can also be reproduced when"aot": true
is added to angular.json configuration, so I don't think this is related to the CLI package.This does not affect .html or .ts files, changes to these files are reflected in a single compilation with aot enabled.
🔬 Minimal Reproduction
https://github.com/thillmfg/ng8aotcssbug
ng serve --aot=true
🔥 Exception or Error
CSS changes require two change/save/compilation steps to be reflected in the browser.
🌍 Your Environment
Angular Version:
Anything else relevant?
Tested using Chrome 75 on Windows 10 x64
The text was updated successfully, but these errors were encountered: