Set less via npm. When you save a .less file, a .css file is automatically created in the same directory that is not good. How to set the path to the folder where the .css files will be saved when compiling I use Ubuntu
|
1 answer
It depends on how you run less. If less is started from the console as a separate command, lessc styles.less > styles.css
. That simply indicate the path after >
. If the gulp / grunt / webpack build system is used, the path is indicated inside the tasks.
- I say that the compilation of an automaton happens after saving, neither I use any of your options - ruslik
- Can you see the code? Is any editor used? You must watch watch on the file, just so it could not appear. - olegatro
- Sublime can do it he - ruslik
- And what code do you need - ruslik
- In such cases, the code is not needed, I'm almost sure that you have a plugin to compile less in css while saving, for example, this one . Try to see in the editor's settings the installed plugins and see if there is any associated with less. I unfortunately do not know sublime, because I use phpstorm - olegatro
|