Answer the question
In order to leave comments, you need to log in
How to compile sass to css on page reload?
Hello, tell me please.
There is a json file that contains the path to the image. This json is imported into sass, sass, in turn, writes the path to the image into a variable and passes it to the background property. When the page is reloaded, the data in the json file (paths to images) may change. In order for the css to "pick up" the new paths, I need to "compile" the css again.
Question: Can I compile sass file to css on page reload?
Answer the question
In order to leave comments, you need to log in
I have not worked with sass, but it is similar to less, which I use. And now the loess is compiled on the side of the server with puff (php), which produces a css file at the output.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question