Sunday, May 5, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 23322  / 3 Years ago, tue, may 25, 2021, 11:34:06

I have installed node, and npm. With npm I downloaded less.



And when I do



lessc styles.less styles.css -x -w


in terminal, it compiles and compresses the code, but doesnt watch the file for changes, since Im expecting LESS to auto compile and refresh the page automatically. So, if I do any changes in my styles.less, every-time I have to go to terminal and enter the command to compile the less css.



Also, the compiler does NOT even show any compile errors.



Please guide me on how to achieve the above. This is my first day with LESS CSS.


More From » command-line

 Answers
4

There is now much easier method.



Install NodeJs.
And via NPM install less-monitor



https://www.npmjs.org/package/less-monitor


[#29283] Tuesday, May 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pipeag

Total Points: 489
Total Questions: 107
Total Answers: 115

Location: Iraq
Member since Fri, Jun 5, 2020
4 Years ago
;