7

I can see in the source that it basically reloads css automatically if you are on localhost, and I can see in the firebug panel that it's requesting the .less file(s) every second.. but when I change something in the files it's not updated on the page unless I do a full refresh.

I also tried using less.refresh() as described here:

https://github.com/cloudhead/less.js/issues/346

But to no avail.

So, how can I reload the .less files without reloading the page?

Thanks

1 Answer 1

4

Found the answer to my question here:

https://github.com/cloudhead/less.js/issues/168

Basically had to add a header to prevent caching .less files.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.