Plugin LESS files resource mapper

  • Tags: ui, resources
  • Latest: 1.3.3.2
  • Last Updated: 18 July 2013
  • Grails version: 2.0 > *
1 vote
Dependency:
compile ":less-resources:1.3.3.2"

 Documentation  Source  Issues

Summary

Provides LESS files resource mapper. Compile .less files into .css files. Less compiler based on less.js (LESS - Leaner CSS v1.3.0 http://lesscss.org)

Installation

grails install-plugin less-resources

Description

Installation

grails install-plugin less-resources

or add to BuildConfig.groovy

compile ":less-resources:1.3.0.2"

Usage

An Example of using less resource module.
grails.resources.modules = {
        'my-less-style' {
          resource url:[dir: 'less', file: 'my-style.less'], attrs:[rel: "stylesheet/less", type:'css']
        }
}

Settings for LESS resource

  • url: The location of the .less file
  • attrs[rel]: should be set to 'stylesheet/less' for compatibility reasons
  • attrs[type]: must be set to 'css' for resources to process