Moved webpack configs to config folder and updated paths

This commit is contained in:
Richard Davey 2019-05-08 22:38:02 +01:00
parent ea19fd2e92
commit d5f9a1c7f4
5 changed files with 14 additions and 15 deletions

View file

@ -6,14 +6,14 @@ const exec = require('child_process').exec;
module.exports = {
mode: 'development',
context: `${__dirname}/src/`,
context: `${__dirname}/../src/`,
entry: {
phaser: './phaser.js'
},
output: {
path: `${__dirname}/build/`,
path: `${__dirname}/../build/`,
filename: '[name].js',
library: 'Phaser',
libraryTarget: 'umd',

View file

@ -7,7 +7,7 @@ const CleanWebpackPlugin = require('clean-webpack-plugin');
module.exports = {
mode: 'production',
context: `${__dirname}/src/`,
context: `${__dirname}/../src/`,
entry: {
phaser: './phaser.js',
@ -17,7 +17,7 @@ module.exports = {
},
output: {
path: `${__dirname}/dist/`,
path: `${__dirname}/../dist/`,
filename: '[name].js',
library: 'Phaser',
libraryTarget: 'umd',

View file

@ -6,14 +6,14 @@ const exec = require('child_process').exec;
module.exports = {
mode: 'development',
context: `${__dirname}/src/`,
context: `${__dirname}/../src/`,
entry: {
phaser: './phaser.js'
},
output: {
path: `${__dirname}/build/`,
path: `${__dirname}/../build/`,
filename: 'phaser-facebook-instant-games.js',
library: 'Phaser',
libraryTarget: 'umd',

View file

@ -6,7 +6,7 @@ const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
mode: 'production',
context: `${__dirname}/src/`,
context: `${__dirname}/../src/`,
entry: {
'phaser-facebook-instant-games': './phaser.js',
@ -14,7 +14,7 @@ module.exports = {
},
output: {
path: `${__dirname}/dist/`,
path: `${__dirname}/../dist/`,
filename: '[name].js',
library: 'Phaser',
libraryTarget: 'umd',

View file

@ -4,7 +4,6 @@
"release": "Ishikawa",
"description": "A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.",
"author": "Richard Davey <rich@photonstorm.com> (http://www.photonstorm.com)",
"logo": "https://raw.github.com/photonstorm/phaser/master/phaser-logo-small.png",
"homepage": "http://phaser.io",
"bugs": "https://github.com/photonstorm/phaser/issues",
"license": "MIT",
@ -17,12 +16,12 @@
"scripts": {
"beta": "npm publish --tag beta",
"help": "node scripts/help.js",
"build": "webpack",
"watch": "webpack --watch",
"buildfb": "webpack --config webpack.fb.config.js",
"watchfb": "webpack --config webpack.fb.config.js --watch",
"dist": "webpack --config webpack.dist.config.js",
"distfb": "webpack --config webpack.fb.dist.config.js",
"build": "webpack --config config/webpack.config.js",
"watch": "webpack --watch --config config/webpack.config.js",
"buildfb": "webpack --config config/webpack.fb.config.js",
"watchfb": "webpack --config config/webpack.fb.config.js --watch",
"dist": "webpack --config config/webpack.dist.config.js",
"distfb": "webpack --config config/webpack.fb.dist.config.js",
"distfull": "npm run dist && npm run distfb",
"plugin.cam3d": "webpack --config plugins/camera3d/webpack.config.js",
"plugin.spine": "webpack --config plugins/spine/webpack.config.js",