-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
55 lines (54 loc) · 2.01 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
module.exports = function (grunt) {
grunt.initConfig({
concat: {
build: {
separator: ';\n',
src: [
"libs/less.js",
"libs/jquery.js",
"libs/materialize.min.js",
"libs/howler.js",
"node_modules/masonry-layout/dist/masonry.pkgd.js",
"node_modules/hellojs/dist/hello.all.min.js",
"node_modules/es6-shim/es6-shim.min.js",
"node_modules/systemjs/dist/system-polyfills.js",
"node_modules/angular2/es6/dev/src/testing/shims_for_IE.js",
"node_modules/angular2/bundles/angular2-polyfills.js",
"node_modules/systemjs/dist/system.src.js",
"node_modules/rxjs/bundles/Rx.js",
"node_modules/angular2/bundles/angular2.dev.js",
"node_modules/angular2/bundles/http.dev.js",
"node_modules/angular2/bundles/router.dev.js"
],
dest: 'build/build.concat.js'
}
},
uglify: {
build: {
files: {
'build/build.min.js': ['build/build.concat.js']
}
}
},
cssmin: {
options: {
shorthandCompacting: false,
roundingPrecision: -1
},
target: {
files: {
'build/build.min.css': [
'libs/materialize.css',
'libs/font-awesome/css/font-awesome.min.css',
'libs/sb-admin.css'
]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('build', ['concat:build', 'uglify:build', 'cssmin']);
grunt.registerTask('default', ['build']);
};