Is there a way to make assetic automatically compile and compress .less files?
I tried this config:
assetic:
debug: "%kernel.debug%"
use_controller: true
bundles: ['BloggerBlogBundle', "FOSCommentBundle"]
#java: /usr/bin/java
filters:
cssrewrite: ~
less:
node: /home/igor/nvm/v0.8.16/bin/node
node_paths: [/home/igor/nvm/bin/node_modules]
apply_to: "\.less$"
yui_css:
jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar
apply_to: "\.css$|\.less"
But this results in .css files getting compressed and .less files getting compiled. I can't make it do both: compile and then compress my .less files.
assetic:dump
. After that, the above method worked for me. – Shaven