-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgruntfile.js
More file actions
33 lines (28 loc) · 843 Bytes
/
Copy pathgruntfile.js
File metadata and controls
33 lines (28 loc) · 843 Bytes
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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
less: {
dev: {
options: {
compress: true,
plugins: [
new (require('less-plugin-autoprefix'))({browsers: ["last 2 versions"]})
]
},
files: {
'./styles/compiled.css': './styles/styles.less'
}
}
},
cssmin: {
target: {
files: {
'styles/compiled.css': ['styles/compiled.css']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ['less:dev']);
};