grunt-praless

grunt-praless =============

grunt-praless

Less with namespaces @require / @provide instead of file based import

Gruntfile.coffee

 
grunt.loadNpmTasks 'grunt-praless'
 
praless:
    all:
        options:
            dest: 'client/app/css/app.css'
            base: 'app.start'
        files: [
            expand: true
            src: ['src/**/*.less']
        ]
 
 
// less entry point - set in options base
@provide 'app.start';
 
@require 'ui.button';
@provide 'mixins';
 
.mix(@c{
    color: @c;
}
@require 'mixins';
 
@provide 'ui.button';
 
.b-button {
    .mix(red);
}