Add webpack build process.

This commit is contained in:
Allie Jones
2015-10-26 12:11:44 -04:00
committed by Tim Abbott
parent e20a1bc73c
commit 85809e6140
11 changed files with 81 additions and 2 deletions

19
webpack.config.js Normal file
View File

@@ -0,0 +1,19 @@
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:9991/socket.io',
'./static/js/src/main.js'
],
devtool: 'eval',
output: {
publicPath: 'http://localhost:9991/webpack/',
path: './static/js',
filename: 'bundle.js'
},
devServer: {
port: 9994,
watchOptions: {
aggregateTimeout: 300,
poll: 1000
}
}
};