mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
This also injects the dev webpack sockets to katex, since that's part of the main web app bundle.
22 lines
670 B
JavaScript
22 lines
670 B
JavaScript
var config = require('./webpack.config.js');
|
|
var BundleTracker = require('webpack-bundle-tracker');
|
|
|
|
// katex should be an array, to inject webpack dependencies in dev config
|
|
// better to be moved to common.js when common.js is added to assets
|
|
config.entry.katex.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;
|