overleaf/services/web/webpack.config.prod.js
Hugh O'Brien bf9473fb41 Merge pull request #2320 from overleaf/as-unify-webpack-output
Unify webpack output

GitOrigin-RevId: 5f5ae88f0698236fdce17cf87b4b524078dba4dd
2019-11-18 11:21:42 +00:00

15 lines
359 B
JavaScript

const merge = require('webpack-merge')
const base = require('./webpack.config')
module.exports = merge(base, {
mode: 'production',
// Enable a full source map. Generates a comment linking to the source map
devtool: 'source-map',
output: {
// Override filename to include hash for immutable caching
filename: '[name]-[chunkhash].js'
}
})