forked from zflat/select2-foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
40 lines (37 loc) · 908 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
32
33
34
35
36
37
38
39
40
module.exports = function(grunt) {
grunt.initConfig({
sass: {
options: {
sourceMap: false,
sourceComments: false
},
development: {
options: {
style: 'nested',
},
files: {
'dist/select2-foundation-theme.css': 'src/sass/select2-foundation.scss'
}
},
production: {
options: {
style: 'compressed',
},
files: {
'dist/select2-foundation-theme.min.css': 'src/sass/select2-foundation.scss'
}
}
},
watch: {
sass: {
files: 'lib/assets/stylesheets/select2/**/*.scss',
tasks: ['sass']
},
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
//Sass Task
grunt.registerTask('sass-Dev', ['sass:development']);
grunt.registerTask('sass-Build', ['sass:production']);
};