mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
bf9473fb41
Unify webpack output GitOrigin-RevId: 5f5ae88f0698236fdce17cf87b4b524078dba4dd
15 lines
359 B
JavaScript
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'
|
|
}
|
|
})
|