CSS theme changes via Yarn + restart?

I’ve setup a local Ghost install so that I can modify the Source theme. After a fair amount of setup, I got everything working. A local instance, a copy of Source to modify, Gulp, Yarn, etc.

Yarn is working: when I save edits to the assets/screen.css file, it rebuilds/minifies the .css file in /built. But in order to see the changes, I have to restart ghost and reload my browser. Is there any way to avoid the restart ghost step? Is there something I missed in all the setup steps?

You shouldn’t need to restart Ghost. Running ‘yarn dev’ and letting it update the css as you make changes /should/ work. Can you share more about your setup? I wonder if you’re looking at browser caching issues – opening your browser’s dev tools (F12) and choosing ‘disable cache’ from the network tab will force a fresh request for the assets.

1 Like

Thanks for the suggestion. That was it. Disabling caching now shows CSS changes!

1 Like