SCSS not updating with ionic serve

I was using PHP Storm and running ionic serve in the editor’s terminal. The SCSS was updating fine for several hours and then it started not updating. I notice that my css files in the build directory under /www are not updating. I tried updating ionic and cordova and restarting. I also tried rerunning ionic serve and using an incognito tab in Chrome but nothing has helped.

Changing browsers won’t help when the underlying file is not changing.

Did you change other stuff in between?
Delete the whole www folder’s content and start ionic serve again.

What is your ionic info output?

I figured out that the main.css was loading the same css classes from another file so the one set was getting overriden.

1 Like