zulip/tools/webpack.production.config.js

9 lines
311 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: 'static/webpack-bundles/webpack-stats-production.json'}));
module.exports = config;