Skip to content

Commit 25813ce

Browse files
committed
Tweaked build settings
1 parent a39555a commit 25813ce

3 files changed

Lines changed: 9 additions & 17 deletions

File tree

scripts/copy-to-examples-fb.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
let fs = require('fs-extra');
22

3-
// let dest = '../phaser3-examples/public/build/dev.js';
4-
// let destMap = '../phaser3-examples/public/build/phaser.js.map';
5-
63
let source = './build/phaser-facebook-instant-games.js';
74
let sourceMap = './build/phaser-facebook-instant-games.js.map';
8-
let dest = '../fbtest1/lib/dev.js';
9-
let destMap = '../fbtest1/lib/phaser.js.map';
5+
let destFolder = '../fbtest1/lib/';
6+
let dest = '../fbtest1/lib/phaser-facebook-instant-games.js';
7+
let destMap = '../fbtest1/lib/phaser-facebook-instant-games.js.map';
108

11-
if (fs.existsSync(dest))
9+
if (fs.existsSync(destFolder))
1210
{
1311
fs.copy(sourceMap, destMap, function (err) {
1412

@@ -30,7 +28,3 @@ if (fs.existsSync(dest))
3028

3129
});
3230
}
33-
else
34-
{
35-
// console.log('Copy-to-Examples failed: Phaser 3 Examples not present at ../phaser3-examples');
36-
}

webpack.dist.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ module.exports = {
1313
phaser: './phaser.js',
1414
'phaser.min': './phaser.js',
1515
'phaser-arcade-physics': './phaser-arcade-physics.js',
16-
'phaser-arcade-physics.min': './phaser-arcade-physics.js',
17-
'phaser-facebook-instant-games': './phaser-facebook-instant-games.js',
18-
'phaser-facebook-instant-games.min': './phaser-facebook-instant-games.js'
16+
'phaser-arcade-physics.min': './phaser-arcade-physics.js'
1917
},
2018

2119
output: {
@@ -51,7 +49,8 @@ module.exports = {
5149
"typeof CANVAS_RENDERER": JSON.stringify(true),
5250
"typeof WEBGL_RENDERER": JSON.stringify(true),
5351
"typeof EXPERIMENTAL": JSON.stringify(false),
54-
"typeof PLUGIN_CAMERA3D": JSON.stringify(false)
52+
"typeof PLUGIN_CAMERA3D": JSON.stringify(false),
53+
"typeof PLUGIN_FBINSTANT": JSON.stringify(false)
5554
}),
5655

5756
new CleanWebpackPlugin([ 'dist' ])

webpack.fb.dist.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
const webpack = require('webpack');
44
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
5-
const CleanWebpackPlugin = require('clean-webpack-plugin');
65

76
module.exports = {
87
mode: 'production',
98

109
context: `${__dirname}/src/`,
1110

1211
entry: {
13-
'phaser-facebook-instant-games': './phaser-facebook-instant-games.js',
14-
'phaser-facebook-instant-games.min': './phaser-facebook-instant-games.js'
12+
'phaser-facebook-instant-games': './phaser.js',
13+
'phaser-facebook-instant-games.min': './phaser.js'
1514
},
1615

1716
output: {

0 commit comments

Comments
 (0)