Split webpack config into 3 files (base, dev, production).

This commit is contained in:
Mehanig
2017-05-23 12:51:04 -07:00
committed by Tim Abbott
parent 573e06260a
commit 4f39d4fc22
4 changed files with 19 additions and 20 deletions

View File

@@ -0,0 +1,16 @@
var config = require('./webpack.config.js');
config.entry.push('webpack-dev-server/client?http://0.0.0.0:9991/socket.io');
config.devtool = 'eval';
config.output.publicPath = 'http://0.0.0.0:9991/webpack/';
config.devServer = {
port: 9994,
stats: "errors-only",
watchOptions: {
aggregateTimeout: 300,
poll: 1000,
},
};
module.exports = config;