forked from chromaui/learnstorybook-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgruntfile.js
More file actions
29 lines (27 loc) · 682 Bytes
/
gruntfile.js
File metadata and controls
29 lines (27 loc) · 682 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
module.exports = function (grunt) {
grunt.initConfig({
less: {
development: {
options: {
compress: true,
yuicompress: true,
optimization: 2,
},
files: {
// target.css file: source.less file
"src/index.css": "src/style/index.less",
},
},
},
watch: {
styles: {
// Which files to watch (all .less files recursively in the less directory)
files: ["src/style/**/*.less"],
tasks: ["less"],
},
},
});
grunt.loadNpmTasks("grunt-contrib-less");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.registerTask("default", ["watch"]);
};