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:
Mehanig
2017-05-24 15:18:27 -07:00
committed by Tim Abbott
parent 96db97d4f7
commit 8c0e500d6b
8 changed files with 17 additions and 18 deletions

View File

@@ -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'}));