View our GitHub

Please visit sails-docs on GitHub to view documentation on your mobile device.

Edit Page


 * Compiles LESS files into CSS.
 * ---------------------------------------------------------------
 * Only the `assets/styles/importer.less` is compiled.
 * This allows you to control the ordering yourself, i.e. import your
 * dependencies, mixins, variables, resets, etc. before other stylesheets)
 * For usage docs see:
module.exports = function(grunt) {

    grunt.config.set('less', {
        dev: {
            files: [{
                expand: true,
                cwd: 'assets/styles/',
                src: ['importer.less'],
                dest: '.tmp/public/styles/',
                ext: '.css'


Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be immediately reflected on the website.