forked from external-repos/pa11y-dashboard
Compile LESS files with grunt
This commit is contained in:
17
Gruntfile.js
17
Gruntfile.js
@@ -16,14 +16,27 @@ module.exports = function (grunt) {
|
||||
node: true,
|
||||
quotmark: 'single'
|
||||
}
|
||||
},
|
||||
|
||||
less: {
|
||||
all: {
|
||||
options: {
|
||||
cleancss: true
|
||||
},
|
||||
files: {
|
||||
'public/css/main.css': 'public/less/main.less'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-less');
|
||||
|
||||
grunt.registerTask('lint', ['jshint']);
|
||||
grunt.registerTask('default', ['lint']);
|
||||
grunt.registerTask('ci', ['lint']);
|
||||
grunt.registerTask('compile', ['less']);
|
||||
grunt.registerTask('default', ['compile', 'lint']);
|
||||
grunt.registerTask('ci', ['compile', 'lint']);
|
||||
|
||||
};
|
Reference in New Issue
Block a user