-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathGruntfile.js
37 lines (36 loc) · 1.21 KB
/
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
33
34
35
36
37
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
less: {
development: {
options: {
paths: ["src/Hyper/AdsBundle/Resources/public/css"]
},
files: {
"src/Hyper/AdsBundle/Resources/public/css/main.css": "src/Hyper/AdsBundle/Resources/public/less/main.less"
}
},
production: {
options: {
paths: ["src/Hyper/AdsBundle/Resources/public/css"],
cleancss: true
},
files: {
"src/Hyper/AdsBundle/Resources/public/css/main.min.css": "src/Hyper/AdsBundle/Resources/public/less/main.less"
}
}
},
watch: {
scripts: {
files: ['src/Hyper/AdsBundle/Resources/public/less/*.less'],
tasks: ['less'],
options: {
nospawn: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['less', 'watch']);
}