mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Updating to Webpack 2.
This commit is contained in:
parent
ca06ac0d07
commit
03fe5ef076
4 changed files with 1011 additions and 141 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
||||
};
|
||||
|
|
1124
3.0.0/yarn.lock
1124
3.0.0/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue