Files
zulip/tools/webpack.production.config.js
Pweaver (Paul Weaver) 01b0ec69d6 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.
2017-07-18 15:02:58 -07:00

9 lines
288 B
JavaScript

var config = require('./webpack.config.js');
var BundleTracker = require('webpack-bundle-tracker');
config.devtool = 'source-map';
config.output.filename = '[name]-[hash].js';
config.plugins.push(new BundleTracker({filename: 'webpack-stats-production.json'}));
module.exports = config;