forked from external-repos/pa11y-dashboard
Add a watch task to recompile assets on change
This commit is contained in:
@@ -27,12 +27,20 @@ module.exports = function (grunt) {
|
||||
'public/css/main.css': 'public/less/main.less'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
less: {
|
||||
files: ['public/less/**/*.less'],
|
||||
tasks: ['less']
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-less');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
grunt.registerTask('lint', ['jshint']);
|
||||
grunt.registerTask('compile', ['less']);
|
||||
|
Reference in New Issue
Block a user