Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Style changess need cache-clearing to show

Started by Muut Archive 10 years ago · 4 replies · 353 views
10 years ago

Hi.
I dont know what I did but for some reason changes in the _custom.scss will not take effect until I trash the cache. I am working with the learn2-theme.

I tried to define load-path a couple of times but nothings good comes out of that. (By the way, am I modifying a file when I define load-path?)

I have made a couple of fresh grav-installs with the learn2-theme and there the watch command works fine.

Any ideas?

10 years ago

hm... it seems to depend on some setting in user/config/system.yaml

10 years ago

Setting css_pipeline: to false solves my problem.
But disabling css_pipeline is going to generate other problems right?

10 years ago

You should only use css_pipeline for production, not during development. For performance reasons the CSS files are not checked for modifications at run time, so that is why you are seeing that.

If you are pushing your CSS changes to production, then the best thing is to clear cache with --assets-only that will mean only the pipelined CSS/JS is cleared:

BASH
bin/grav clear --asssets-only

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1366 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago