Noosphere Possibilities Maximized
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    grunt-newer-lesspublic

    About

    grunt-newer-less is a set of helpers which enables LESS compilation when using grunt-newer.

    Install

    npm install grunt-newer-less

    Add require

    var gruntNewerLess = require('grunt-newer-less');

    Usage Option 1: standard override of 'newer' grunt task:

    newer: {
        options: {
            override: gruntNewerLess.overrideLess
        }
    }

    Usage Option 2: custom override of 'newer' grunt task:

    newer: {
        options: {
            override: function(detail, include) {
                if (detail.task === 'less') {
                    gruntNewerLess.checkForNewerImports(detail.path, detail.time, include);
                } else {
                    include(false);
                }
            }
        }
    }

    Credits

    Adapted from the following gists: https://gist.github.com/cgmartin/10328349 https://gist.github.com/migreva/2a926b95f25366da657c

    Keywords

    install

    npm i grunt-newer-less

    Downloadslast 7 days

    71

    version

    1.0.2

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar