forked from hacklabcbba/Federica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
30 lines (29 loc) · 890 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
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
// Project configuration.
grunt.initConfig({
less: {
development: {
options: {
sourceMap: true,
sourceMapFilename: 'src/main/webapp/css/style.css.map', // where file is generated and located
sourceMapURL: 'style.css.map', // the complete url and filename put in the compiled css file
sourceMapRootpath: '/federica/' // adds this path onto the sourcemap filename and less file paths
},
files: {
'src/main/webapp/css/styles.css': 'src/main/webapp/css/styles.less'
}
}
},
watch: {
less: {
files: ['src/main/webapp/css/styles.less'],
tasks: ['less:development'],
options: {
spawn: true
}
}
}
});
};