Imported Sass/Scss files do not trigger a refresh when using ng serve in aot mode #16569
Closed
1 of 15 tasks
Labels
Milestone
馃悶 Bug report
Command (mark with an
x
)Is this a regression?
It doesn't seem to be a regression as I have the exact same problem with both angular 8 and 9
For the sake of helping figure out the problem, I created a fresh project, did some tests, then upgraded to angular 9 and did some tests again.
Description
Angular 8 :
When using "ng serve --aot", modifying an imported scss file does not trigger a refresh. It does however when using only "ng serve"
Angular 9
When using "ng serve" (aot is enabled by default when upgrading from 8 to 9), modifying an imported scss file does not trigger a refresh. If you disable aot in angular.json, then it works.
馃敩 Minimal Reproduction
Angular 8
Create a new angular project : "ng new test-css". Chose no routing, and scss style format
Modify app.component.html to contain only that :
run "ng serve --aot" => the text is red
comment the red color line and uncomment the green one, then save => nothing happens
save app.component.scss => a refresh is done but the color is still red, save again, the color is green.
馃敟 Exception or Error
Not applicable.
馃實 Your Environment
Using visual studio code insiders 1.42.0
Anything else relevant?
The text was updated successfully, but these errors were encountered: