-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgruntfile.js
33 lines (29 loc) · 1.12 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
module.exports = function( grunt ) {
var packageJSON = grunt.file.readJSON('package.json');
var licenseBanner = '/**\n' +
' * ' + packageJSON.name + ' ' + packageJSON.version + '\n' +
' * (c) 2013 Luke Moody (http://www.github.com/squarefeet)\n' +
' *\n' +
' * THREE.TargetCamera may be freely distributed under the MIT license\n' +
' * (See the LICENSE file at root of this repository.)\n' +
' */\n';
// Specify input files and output paths
grunt.initConfig({
uglify: {
min: {
options: {
mangle: true,
compress: {
dead_code: true,
},
banner: licenseBanner
},
files: [ {
'build/THREE.TargetCamera.min.js': 'src/THREE.TargetCamera.js'
} ]
}
}
});
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
grunt.registerTask( 'default', ['uglify'] );
};