zulip/tools/webpack.dev.config.js

20 lines
533 B
JavaScript

var config = require('./webpack.config.js');
var BundleTracker = require('webpack-bundle-tracker');
config.entry.translations.unshift('webpack-dev-server/client?sockjs-node');
config.devtool = 'eval';
config.output.publicPath = '/webpack/';
config.plugins.push(new BundleTracker({filename: 'static/webpack-bundles/webpack-stats-dev.json'}));
config.devServer = {
port: 9994,
inline: false,
stats: "errors-only",
watchOptions: {
aggregateTimeout: 300,
poll: 1000,
},
};
module.exports = config;