-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGruntFile.js
More file actions
29 lines (27 loc) · 921 Bytes
/
GruntFile.js
File metadata and controls
29 lines (27 loc) · 921 Bytes
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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner:'/*!\n * Copyright (c) Christopher Keefer, <%= grunt.template.today("yyyy") %>.\n' +
' * <%= pkg.name %>: V<%= pkg.version %>.\n' +
' * Compiled: <%= grunt.template.today("yyyy-mm-dd") %> \n */\n\n',
uglify:{
options:{
banner:'<%= banner %>',
report:'min'
},
hup:{
options:{
sourceMappingURL:'hup.min.map',
sourceMapPrefix:2,
sourceMap:'dist/hup.min.map'
},
src:'hup.js',
dest:'dist/hup.min.js'
}
}
});
// Load plugins for each task
grunt.loadNpmTasks('grunt-contrib-uglify');
// Tasks
grunt.registerTask('default', ['uglify']);
};