Gruntfile.js
1.11 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
44
45
46
47
48
49
50
51
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
/**
* 1 :: Process SASS (SCSS) files and compile their CSS version.
*/
sass: {
options: {
// app.scss loads components from foundation.
// Without this include, grunt would not know where to get them from.
includePaths: ['bower_components/foundation/scss']
},
dist: {
options: {
// We will minify our final combined CSS file anyway.
outputStyle: 'normal'
},
files: {
'css/app.css': 'scss/app.scss',
}
}
},
/**
* X :: Watch files for changes and act on them (recompile etc...).
*/
watch: {
options: {
livereload: true,
},
grunt: {
files: ['Gruntfile.js']
},
css: {
files: ['scss/**/*.scss', 'css/libs/*.css'],
tasks: ['sass', ]
},
}
});
// Load necessairy grunt tasks based on npm modules.
require("load-grunt-tasks")(grunt);
grunt.registerTask('build', ['sass']);
grunt.registerTask('default', ['build','watch']);
}