Skip to content

Commit ef95209

Browse files
committed
Dev build now builds to examples/dev.js.
Updated dist build.
1 parent 41b9e7d commit ef95209

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

v3/copy-to-examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var fs = require('fs-extra');
22

33
var source = './dist/phaser.js';
4-
var dest = '../../phaser3-examples/public/js/phaser.js';
4+
var dest = '../../phaser3-examples/public/build/dev.js';
55

66
fs.copy(source, dest, function (err) {
77

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: 'f9e04950-75dc-11e7-b245-a193dfa08aaf'
2+
build: '25109a70-75f2-11e7-834a-a16fc1dcb07f'
33
};
44
module.exports = CHECKSUM;

v3/webpack.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ module.exports = {
2424

2525
plugins: [
2626

27-
new webpack.optimize.ModuleConcatenationPlugin(),
28-
2927
new WebpackShellPlugin({
3028
onBuildStart: 'node create-checksum.js',
3129
onBuildEnd: 'node copy-to-examples.js'
3230
})
3331

3432
],
3533

36-
// devtool: 'inline-source-map'
37-
devtool: 'source-map'
34+
devtool: 'inline-source-map'
3835

3936
};

v3/webpack.dist.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module.exports = {
99
context: `${__dirname}/src/`,
1010

1111
entry: {
12-
phaser: './phaser.js'
12+
phaser: './phaser.js',
13+
'phaser.min': './phaser.js'
1314
},
1415

1516
output: {
@@ -23,6 +24,7 @@ module.exports = {
2324
plugins: [
2425

2526
new UglifyJSPlugin({
27+
include: /\.min\.js$/,
2628
parallel: true,
2729
sourceMap: true,
2830
compress: true,

0 commit comments

Comments
 (0)