Answer the question
In order to leave comments, you need to log in
PhpStorm - How to convert 1 main less file instead of all?
Faced the problem of converting less files to phpstorm. I have several different files in less like mixins.less, variables.less and one main main.less in which all the others are connected. Here, when I change any file, phpStorm automatically compiles it to css.
Answer the question
In order to leave comments, you need to log in
You need to configure the watcher correctly, namely, specify which file to compile.
For example like this
Maybe I don’t understand something - but when working with less in PhpStorm or any other IDE - it’s generally better not to use built-in compilation - I prefer the watch procedure in Grunt: I just change less files without thinking about compiling at all - it does it for me Grunt
As a matter of fact - you collect some files in one (as for example in bootstrap) - means to you in settings of File Watchers and there to configure as it would be desirable.
But IMHO it seems to me that this is a vicious way - through the console (if you are not working in WIN) - it is easier and more transparent
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question