forked from shopware5/devdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
31 lines (28 loc) · 859 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
module.exports = (grunt) => {
grunt.initConfig({
less: {
development: {
options: {
compress: true,
sourceMapFileInline: true,
rootpath: 'assets/'
},
files: {
'output_dev/assets/css/basic.css': 'source/assets/css/basic.less'
}
}
},
watch: {
styles: {
files: ['source/assets/css/*/**.less', 'source/assets/css/*.less'],
tasks: ['less:development'],
options: {
livereload: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('default', [ 'less:development' ]);
};