Updating to Webpack 2.

This commit is contained in:
photonstorm 2016-11-22 16:25:54 +00:00
parent ca06ac0d07
commit 03fe5ef076
4 changed files with 1011 additions and 141 deletions

View file

@ -30,6 +30,9 @@
"web audio"
],
"dependencies": {
"webpack": "^1.13.3"
"webpack": "2.1.0-beta.27"
},
"devDependencies": {
"webpack-dev-server": "2.1.0-beta.11"
}
}

View file

@ -1,7 +1,24 @@
'use strict';
const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
context: __dirname + '/src',
entry: {
phaser: './phaser.js'
},
output: {
filename: 'bundle.js',
path: './dist'
path: __dirname + '/dist',
filename: '[name].js',
library: 'Phaser',
publicPath: '/lib'
},
devServer: {
contentBase: __dirname + '/src'
}
};

File diff suppressed because it is too large Load diff