forked from understrap/understrap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gruntfile.js
46 lines (41 loc) · 1.43 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
38
39
40
41
42
43
44
45
46
module.exports = function(grunt) {
//2. Project configuration.
grunt.initConfig({
//define what to do with the SASS process
sass: { // Task
dev: { // Target
options: { // Target options
style: 'expanded',
sourcemap: 'none'
},
files: [{
src: ['sass/theme.scss'],
dest: 'css/theme.css',
ext: '.css'
}]
},
dist: { // Target
options: { // Target options
style: 'compressed',
sourcemap: 'none'
},
files: [{
src: ['sass/theme.scss'],
dest: 'css/theme.min.css',
ext: '.css'
}]
}
},
watch: {
css: {
files: ['sass/**/*.scss'],
tasks: ['sass']
}
}
});
//1. load task libraries for use
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
//3. register a named task ( 'process' ) that runs Grunt processes ( 'imagemin', 'concat' )
grunt.registerTask( 'process', [ 'sass:dev', 'sass:dist' ] );
};