-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
54 lines (45 loc) · 1.45 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
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
concat: {
js: {
options: {
separator: ";\n"
},
src: [
// 'bower_components/director/build/director.min.js',
'node_modules/jquery/dist/jquery.min.js',
'node_modules/axios/dist/axios.min.js',
// 'bower_components/bootstrap/dist/js/bootstrap.min.js',
'node_modules/vue/dist/vue.min.js',
],
dest: 'www/res/js/vendor.min.js'
},
css_bootstrap: {
options: {separator: "\n"},
src: [
'node_modules/bootstrap/dist/css/bootstrap.min.css',
],
dest: 'www/res/css/vendor.min.css',
},
},
sass: {
dist: {
files: {
'www/res/css/index.css': 'www/res/css/index.scss'
}
}
},
watch: {
styles: {
files: [
'www/res/css/*.scss',
],
tasks: ['sass']
}
}
})
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.registerTask('default', ['concat', 'sass']);
}