-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathGruntfile.js
More file actions
39 lines (37 loc) · 1.32 KB
/
Gruntfile.js
File metadata and controls
39 lines (37 loc) · 1.32 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
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
cssmin: {
target: {
files: {
'resources/css/humhub.custom_pages.min.css': 'resources/css/humhub.custom_pages.css',
'modules/template/resources/css/humhub.custom_pages.template.min.css': 'modules/template/resources/css/humhub.custom_pages.template.css'
}
}
},
sass: {
options: {
implementation: require('sass')
},
dev: {
files: {
'resources/css/humhub.custom_pages.css': 'resources/css/humhub.custom_pages.scss',
'modules/template/resources/css/humhub.custom_pages.template.css': 'modules/template/resources/css/humhub.custom_pages.template.scss'
}
}
},
watch: {
scripts: {
files: ['resources/css/*.scss'],
tasks: ['build'],
options: {
spawn: false,
},
},
}
});
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('build', ['sass', 'cssmin']);
};