LESS: Netbeans 8.0 does not use `Compiler options` when configuring` CSS Preprocessor`

I have successfully set up automatic LESS compilation in my project and it works fine, but I wanted to add line numbers to the output files and this is what I got:


NetBeans 8.0> Options>Miscellaneous

  • Less path | input field |: /usr/bin/lessc

  • Both boxes in the LESS section are checked.

Project properties> CSS Preprocessors>LESS |tab|

  • Compile LESS Files on Save [checkbox]: marked
  • Input (path) Output (path): /less

    /css

  • Compiler Options | input field |: --clean-css --line-numbers=comments


But in the output I get CSS like , I compile without any parameters .

It compiles and its OK, but any option seems to be ignored.

But if I , using manually, the same compiler from the command line with the same parameters does what it should and compiles with line numbers and pure CSS.

+3


source to share


1 answer


So, actually the problem was this ... The Framework compiler was rewriting the CSS when creating assets.

I am using Symfony2. And there is a pre-configured *.less

compilation
that I completely forgot to ask my question.



Netbeans compiles LESS on its own, and Symfony uses its own compiler and filters to organize the CSS for the project. So the framework compiler needs to be tuned in my case to get the desired result.

Perhaps this situation will help someone deal with a similar problem.

+2


source







All Articles