Move the webpack stats files to var/ and deploy root.

static/ serves static files which get copied around per deploy. Since
the webpack stats files need a consistent name and change per deploy,
they can't live in static/.

This fixes a bug that preventing downgrading a Zulip server to an old
version.
This commit is contained in:
Pweaver (Paul Weaver)
2017-07-18 15:47:47 -04:00
committed by Tim Abbott
parent 09043c25ca
commit 01b0ec69d6
7 changed files with 12 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ config.entry.common.push('./static/js/debug.js');
config.devtool = 'eval';
config.output.publicPath = '/webpack/';
config.plugins.push(new BundleTracker({filename: 'static/webpack-bundles/webpack-stats-dev.json'}));
config.plugins.push(new BundleTracker({filename: 'var/webpack-stats-dev.json'}));
// Hot Reload of code in development
config.plugins.push(new webpack.HotModuleReplacementPlugin());
// Better logging from console for hot reload