phaser/tasks/options/uglify.js

57 lines
1.5 KiB
JavaScript
Raw Normal View History

module.exports = {
2015-02-19 05:01:50 +00:00
2015-02-19 06:03:42 +00:00
custom: {
2015-02-19 05:01:50 +00:00
2015-02-19 06:03:42 +00:00
options: {
sourceMap: '<%= sourcemap %>',
sourceMapName: '<%= compile_dir %>/<%= filename %>.map',
2016-04-04 21:15:01 +00:00
banner: '/* Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2016 Photon Storm Ltd. */\n'
2015-02-19 06:03:42 +00:00
},
2015-02-19 05:01:50 +00:00
2015-02-19 06:03:42 +00:00
src: ['<%= concat.custom.dest %>'],
dest: '<%= compile_dir %>/<%= filename %>.min.js'
2015-02-19 05:01:50 +00:00
2015-07-29 14:01:04 +00:00
},
pixi: {
options: {
sourceMap: '<%= sourcemap %>',
sourceMapName: '<%= compile_dir %>/pixi.map',
2016-04-04 21:15:01 +00:00
banner: '/* Phaser v<%= package.version %> PIXI Build - http://phaser.io - @photonstorm - (c) 2016 Photon Storm Ltd. */\n'
2015-07-29 14:01:04 +00:00
},
src: ['<%= concat.pixi.dest %>'],
dest: '<%= compile_dir %>/pixi.min.js'
},
creature: {
options: {
sourceMap: '<%= sourcemap %>',
sourceMapName: '<%= compile_dir %>/creature.map',
2016-04-04 21:15:01 +00:00
banner: '/* Phaser v<%= package.version %> Creature Build - http://phaser.io - @photonstorm - (c) 2016 Photon Storm Ltd. */\n'
2015-07-29 14:01:04 +00:00
},
src: ['<%= concat.creatureGlobalSplit.dest %>'],
dest: '<%= compile_dir %>/creature.min.js'
},
p2: {
options: {
sourceMap: '<%= sourcemap %>',
sourceMapName: '<%= compile_dir %>/p2.map',
2016-04-04 21:15:01 +00:00
banner: '/* Phaser v<%= package.version %> P2.JS Build - http://phaser.io - @photonstorm - (c) 2016 Photon Storm Ltd. */\n'
2015-07-29 14:01:04 +00:00
},
src: ['<%= concat.p2GlobalSplit.dest %>'],
dest: '<%= compile_dir %>/p2.min.js'
}
2015-02-19 05:01:50 +00:00
};