A
A
akrom1232014-07-18 15:06:05
css
akrom123, 2014-07-18 15:06:05

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

2 answer(s)
E
Evgeny Komarov, 2014-07-18
@akrom123

You need to configure the watcher correctly, namely, specify which file to compile.
For example like this

L
LiVsI, 2014-07-18
@LiVsI

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 question

Ask a Question

731 491 924 answers to any question