I am trying to work with sass in my project. I have several different sources and would like to Concat them as a single file. I noticed that hugo server does not reload when I make changes to any of these sass files. However when they are not concatenated it works as expected.
Yes, I tried with that command. The sass files that grouped together don’t refresh (a.scss, b.scss, c.scss). However changes to solo.scss does refresh the browser.
Try to put the source files below /scss or /sass … Yes I understand that this is a little limited/hidden/surprising – but I implemented cache invalidation using prefixes …
@bep thanks for the suggestion! I tried changing the dir name to scss. However updates to /assets/scss/{a,b,c}.scss are still not automatically shown in browser (/assets/scss/solo.scss works). I am not sure if you meant /scss at the root of the project dir. I tried this also with /scss/top.scss but I get an error when trying to use {{ $topCSS := resources.Get “scss/top.scss” | resources.ToCSS}}
I’ve updated my sample repo to show what I’ve tried.
Is this the way you suggested to structure the scss source files or am I missing something?