phaser/tasks/options/uglify.js
2015-07-29 15:01:04 +01:00

56 lines
1.5 KiB
JavaScript

module.exports = {
custom: {
options: {
sourceMap: '<%= sourcemap %>',
sourceMapName: '<%= compile_dir %>/<%= filename %>.map',
banner: '/* Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2015 Photon Storm Ltd. */\n'
},
src: ['<%= concat.custom.dest %>'],
dest: '<%= compile_dir %>/<%= filename %>.min.js'
},
pixi: {
options: {
sourceMap: '<%= sourcemap %>',
sourceMapName: '<%= compile_dir %>/pixi.map',
banner: '/* Phaser v<%= package.version %> PIXI Build - http://phaser.io - @photonstorm - (c) 2015 Photon Storm Ltd. */\n'
},
src: ['<%= concat.pixi.dest %>'],
dest: '<%= compile_dir %>/pixi.min.js'
},
creature: {
options: {
sourceMap: '<%= sourcemap %>',
sourceMapName: '<%= compile_dir %>/creature.map',
banner: '/* Phaser v<%= package.version %> Creature Build - http://phaser.io - @photonstorm - (c) 2015 Photon Storm Ltd. */\n'
},
src: ['<%= concat.creatureGlobalSplit.dest %>'],
dest: '<%= compile_dir %>/creature.min.js'
},
p2: {
options: {
sourceMap: '<%= sourcemap %>',
sourceMapName: '<%= compile_dir %>/p2.map',
banner: '/* Phaser v<%= package.version %> P2.JS Build - http://phaser.io - @photonstorm - (c) 2015 Photon Storm Ltd. */\n'
},
src: ['<%= concat.p2GlobalSplit.dest %>'],
dest: '<%= compile_dir %>/p2.min.js'
}
};