2017-05-23 21:51:04 +02:00
|
|
|
var config = require('./webpack.config.js');
|
2017-05-24 00:03:53 +02:00
|
|
|
var BundleTracker = require('webpack-bundle-tracker');
|
2017-05-23 21:51:04 +02:00
|
|
|
|
2017-05-24 00:03:53 +02:00
|
|
|
config.entry.translations.push('webpack-dev-server/client?http://0.0.0.0:9991/socket.io');
|
2017-05-23 21:51:04 +02:00
|
|
|
config.devtool = 'eval';
|
|
|
|
config.output.publicPath = 'http://0.0.0.0:9991/webpack/';
|
2017-05-24 00:03:53 +02:00
|
|
|
config.plugins.push(new BundleTracker({filename: 'static/webpack-bundles/webpack-stats-dev.json'}));
|
2017-05-23 21:51:04 +02:00
|
|
|
|
|
|
|
config.devServer = {
|
|
|
|
port: 9994,
|
|
|
|
stats: "errors-only",
|
|
|
|
watchOptions: {
|
|
|
|
aggregateTimeout: 300,
|
|
|
|
poll: 1000,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|