Provides LESS support for the asset-pipeline static asset management plugin.
The Grails `less-asset-pipeline` is a plugin that provides LESS support for the asset-pipeline static asset management plugin.For more information on how to use asset-pipeline, visit http://www.github.com/bertramdev/asset-pipeline .
UsageSimply create files in your standard `assets/stylesheets` folder with extension `.less` or `.css.less`. You also may require other files by using the following requires syntax at the top of each file or the standard LESS import:
/* *= require test *= require_self *= require_tree . *//*Or use this*/ @import 'test'
ConfigurationThis plugin supports compilation via the standard less-1.6.0.js library or via less4j. To turn on less4j simply add the following to your Config.groovy:
This can give a > 2x performance improvement.
grails.assets.less.compiler = 'less4j'