-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathGruntfile.js
32 lines (29 loc) · 939 Bytes
/
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
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-sass');
grunt.initConfig({
sass: {
dev: {
expand: true,
cwd: 'src',
src: ['**/*.scss', '!**/_*.scss', '!bower_components/**/*.scss', '!node_modules/**/*.scss'],
dest: './dist',
ext: '.css',
options: {
outputStyle: 'expanded'
}
},
compressed: {
expand: true,
cwd: 'src',
src: ['**/*.scss', '!**/_*.scss', '!bower_components/**/*.scss', '!node_modules/**/*.scss'],
dest: './dist',
ext: '.min.css',
options: {
outputStyle: 'compressed'
}
}
}
});
grunt.registerTask('build', ['sass']);
grunt.registerTask('default', ['build']);
}