-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
32 lines (28 loc) · 904 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
scripts: {
files: ['src/stylesheets/**/*.scss', 'src/stylesheets/theme.scss'],
tasks: ['sass']
}
},
sass: { // Task
dist: { // Target
options: { // Target options
style: 'expanded',
sourcemap: 'none'
},
files: { // Dictionary of files
'assets/theme.css': 'src/stylesheets/theme.scss' // 'destination': 'source'
}
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
// Default task(s).
grunt.registerTask('default', ['watch']);
};