overleaf/services/web/webpack.config.prod.js
Alasdair Smith 78c30015f4 Merge pull request #2265 from overleaf/as-move-vendored-deps
Move vendored dependencies out of output directory

GitOrigin-RevId: bad086bdc2a80f9df5d3f934098cb7b05e8f6db5
2019-10-30 11:35:56 +00:00

21 lines
507 B
JavaScript

const path = require('path')
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 output path to minjs dir
path: path.join(__dirname, '/public/minjs'),
// Override filename to include hash for immutable caching
filename: '[name]-[chunkhash].js',
publicPath: '/minjs/'
}
})