mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
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.
9 lines
288 B
JavaScript
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;
|