-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
49 lines (41 loc) · 850 Bytes
/
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
module.exports = function(grunt) {
// Config
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
dirs: {
dest: ''
},
vars: { },
concat: {
production: {
options: {
process: true
},
src: [
'src/umd-head.js',
// core
'src/voila.js',
'src/imageready.js',
'src/umd-tail.js'
],
dest: 'voila.pkgd.js'
}
},
uglify: {
production: {
options: {
preserveComments: 'some'
},
'src': ['voila.pkgd.js'],
'dest': 'voila.pkgd.min.js'
}
}
});
// Load plugins
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
// Tasks
grunt.registerTask('default', [
'concat:production', 'uglify:production'
]);
};