-
Notifications
You must be signed in to change notification settings - Fork 83
/
Gruntfile.js
32 lines (30 loc) · 967 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Gruntfile
module.exports = function(grunt) {
require('jit-grunt')(grunt);
grunt.initConfig({
less: {
publish: {
options: {
compress: true,
yuicompress: true,
optimization: 2
},
files: {
// Destination file and source file
'public/css/backend.css': 'resources/assets/less/backend.less'
}
}
},
watch: {
styles: {
files: ['resources/assets/less/backend.less'], // Files to watch
tasks: ['less'], // Tasks to run
options: {
nospawn: true
}
}
}
});
grunt.registerTask('default', ['less:publish']); // Compile the less files of the cms to the public css folder
grunt.registerTask('watch', ['less:publish', 'watch']);
};