mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
78c30015f4
Move vendored dependencies out of output directory GitOrigin-RevId: bad086bdc2a80f9df5d3f934098cb7b05e8f6db5
21 lines
507 B
JavaScript
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/'
|
|
}
|
|
})
|