mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Added dist
folder to repo.
Build now puts dev files in `build` folder instead, which is excluded from npm.
This commit is contained in:
parent
49a23f7b6b
commit
1484d8251b
6 changed files with 9 additions and 6 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -11,6 +11,5 @@ node_modules/
|
|||
|
||||
# Build
|
||||
/npm-debug.log
|
||||
build/
|
||||
out/
|
||||
v3/src/checksum.js
|
||||
src/checksum.js
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
**/.*
|
||||
wip/
|
||||
build/
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
let fs = require('fs-extra');
|
||||
let sloc = require('node-sloc');
|
||||
|
||||
let source = './dist/phaser.js';
|
||||
let sourceMap = './dist/phaser.js.map';
|
||||
let source = './build/phaser.js';
|
||||
let sourceMap = './build/phaser.js.map';
|
||||
let dest = '../phaser3-examples/public/build/dev.js';
|
||||
let destMap = '../phaser3-examples/public/build/phaser.js.map';
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
"web audio"
|
||||
],
|
||||
"devDependencies": {
|
||||
"clean-webpack-plugin": "^0.1.18",
|
||||
"eslint": "^4.13.1",
|
||||
"fs-extra": "^5.0.0",
|
||||
"node-sloc": "^0.1.10",
|
||||
|
|
|
@ -12,7 +12,7 @@ module.exports = {
|
|||
},
|
||||
|
||||
output: {
|
||||
path: `${__dirname}/dist/`,
|
||||
path: `${__dirname}/build/`,
|
||||
filename: '[name].js',
|
||||
library: 'Phaser',
|
||||
libraryTarget: 'umd',
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
const webpack = require('webpack');
|
||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
|
||||
|
@ -38,6 +39,8 @@ module.exports = {
|
|||
'WEBGL_RENDERER': JSON.stringify(true)
|
||||
}),
|
||||
|
||||
new CleanWebpackPlugin(['dist']),
|
||||
|
||||
new UglifyJSPlugin({
|
||||
include: /\.min\.js$/,
|
||||
parallel: true,
|
||||
|
|
Loading…
Reference in a new issue