-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathGruntfile.js
65 lines (53 loc) · 1.5 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
module.exports = function (grunt) {
const sass = require('node-sass');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
paths: {
root: './',
sass: '<%= paths.root %>Resources/Private/Sass/'
},
sass: {
options: {
implementation: sass,
sourceMap: false
},
dist: {
options: {
outputStyle: 'compressed'
},
files: {
'Resources/Public/Css/brofix.css': 'Resources/Private/Sass/brofix.scss',
'Resources/Public/Css/brofix_manage_exclusions.css': 'Resources/Private/Sass/brofix_manage_exclusions.scss'
}
}
},
watch: {
sass: {
files: [
'Resources/Private/Sass/brofix.scss',
'Resources/Private/Sass/brofix_manage_exclusions.scss'
],
tasks: [
'sass'
]
}
}
});
//grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('watch', ['sass', 'watch']);
grunt.registerTask('build', ['sass']);
};