I have this problem with a LESS project. It's first time that I try this new language...
I'm using less.js library to parse .less
file in real time.
I created many .less
files with a main.less
that @import
others. Today I experienced some strange behaviour:
- Some edits on a secondary .less file seems to be completely ignored.
- On another PC the same website (I edit my files directly on an ftp folder) has previous modifications, so they were correct!
- Coming back to original PC, again, modifications are ignored.
I thought about cache problems but even empting cache, problem remains....
Here on SO I found a possible solution concerning watch()
mode... I tried adding #!watch
at the end of the URL as suggested in official documentation and it seems running correctly. (see lesscss import and watch)
So, can you explain me why there is this problem (apparently related only to secondary files, not on the main.less
) and what is the exact role of watch()
mode?
Thank you, Luca