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
52
53
54
55
56
57
58
59
60
61
62
63
|
/* jshint nod: true */
"use strict";
var livereload = {
host: 'localhost',
port: 35729,
};
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
sourcemap: 'none',
unixNewlines: true,
compass: true,
lineNumbers: false,
},
files: {
'css/material-icons.css' : 'scss/material-icons.scss'
}
},
demo: {
options: {
sourcemap: 'none',
unixNewlines: true,
compass: true,
lineNumbers: true,
},
files: {
'demo/style/main.css' : 'demo/style/main.scss'
}
},
},
cssmin: {
options: {
sourceMap: true
},
target: {
files: {
'css/material-icons.min.css': ['css/material-icons.css']
}
}
},
watch: {
css: {
files: [
'scss/*.scss',
'demo/style/*.scss'
],
tasks: ['sass'],
options: {
livereload: livereload
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['sass', 'watch']);
}
|