-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgruntfile.js
More file actions
43 lines (43 loc) · 1.13 KB
/
gruntfile.js
File metadata and controls
43 lines (43 loc) · 1.13 KB
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
38
39
40
41
42
43
module.exports = function (grunt) {
grunt.initConfig({
watch: {
css: {
files: ['sass/**'],
tasks: ['sass:compressed', 'sass:expanded']
}
},
sass: {
compressed: {
options: {
style: 'compressed'
},
files: {
'public/main/reset.min.css': 'sass/main.scss',
'public/mobile/reset.min.css': 'sass/mobile-single.scss',
'public/native/reset.min.css': 'sass/mobile-native.scss'
}
},
expanded: {
options: {
style: 'expanded'
},
files: {
'public/main/reset.css': 'sass/main.scss',
'public/mobile/reset.css': 'sass/mobile-single.scss',
'public/native/reset.css': 'sass/mobile-native.scss'
}
}
},
concurrent: {
tasks: ['watch', 'sass:compressed', 'sass:expanded'],
options: {
logCuncurrentOutput: true
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-concurrent');
grunt.option('force', true);
grunt.registerTask('default', ['concurrent']);
}