-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gruntfile.js
39 lines (35 loc) · 1.12 KB
/
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
'use strict';
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
var base = 'ecobasa/static';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
sass: {
files: '**/*.s[ac]ss',
tasks: ['sass:dev']
},
options: {
livereload: 35731,
},
},
sass: { // Task
dev: { // Another target
options: { // Target options
style: 'expanded',
trace: true
/* lineNumbers: true */
},
files: {
'ecobasa/static/css/main.css': base + '/sass/main.scss'
//'forum/static/forum/css/main.css': 'forum/' + base + '/forum/sass/main.scss',
}
}
}
});
grunt.registerTask('default', [
'sass', 'watch'
]);
};