mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Moved webpack configs to config folder and updated paths
This commit is contained in:
parent
ea19fd2e92
commit
d5f9a1c7f4
5 changed files with 14 additions and 15 deletions
|
@ -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',
|
|
@ -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',
|
|
@ -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',
|
|
@ -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',
|
13
package.json
13
package.json
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue