mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
webpack: Migrate api and katex js files to Webpack bundler.
This also injects the dev webpack sockets to katex, since that's part of the main web app bundle.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
var config = require('./webpack.config.js');
|
||||
var BundleTracker = require('webpack-bundle-tracker');
|
||||
|
||||
config.entry.translations.unshift('webpack-dev-server/client?sockjs-node');
|
||||
// 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'}));
|
||||
|
||||
Reference in New Issue
Block a user