File tree 6 files changed +9
-6
lines changed
6 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,5 @@ node_modules/
11
11
12
12
# Build
13
13
/npm-debug.log
14
+ build /
14
15
out /
15
- v3 /src /checksum.js
16
- src /checksum.js
Original file line number Diff line number Diff line change 1
1
** /. *
2
- wip /
2
+ build /
Original file line number Diff line number Diff line change 1
1
let fs = require ( 'fs-extra' ) ;
2
2
let sloc = require ( 'node-sloc' ) ;
3
3
4
- let source = './dist /phaser.js' ;
5
- let sourceMap = './dist /phaser.js.map' ;
4
+ let source = './build /phaser.js' ;
5
+ let sourceMap = './build /phaser.js.map' ;
6
6
let dest = '../phaser3-examples/public/build/dev.js' ;
7
7
let destMap = '../phaser3-examples/public/build/phaser.js.map' ;
8
8
Original file line number Diff line number Diff line change 34
34
" web audio"
35
35
],
36
36
"devDependencies" : {
37
+ "clean-webpack-plugin" : " ^0.1.18" ,
37
38
"eslint" : " ^4.13.1" ,
38
39
"fs-extra" : " ^5.0.0" ,
39
40
"node-sloc" : " ^0.1.10" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module.exports = {
12
12
} ,
13
13
14
14
output : {
15
- path : `${ __dirname } /dist /` ,
15
+ path : `${ __dirname } /build /` ,
16
16
filename : '[name].js' ,
17
17
library : 'Phaser' ,
18
18
libraryTarget : 'umd' ,
Original file line number Diff line number Diff line change 2
2
3
3
const webpack = require ( 'webpack' ) ;
4
4
const UglifyJSPlugin = require ( 'uglifyjs-webpack-plugin' ) ;
5
+ const CleanWebpackPlugin = require ( 'clean-webpack-plugin' ) ;
5
6
6
7
module . exports = {
7
8
@@ -38,6 +39,8 @@ module.exports = {
38
39
'WEBGL_RENDERER' : JSON . stringify ( true )
39
40
} ) ,
40
41
42
+ new CleanWebpackPlugin ( [ 'dist' ] ) ,
43
+
41
44
new UglifyJSPlugin ( {
42
45
include : / \. m i n \. j s $ / ,
43
46
parallel : true ,
You can’t perform that action at this time.
0 commit comments