2018-03-13 13:44:08 -04:00
|
|
|
const path = require('path')
|
2018-03-13 07:19:30 -04:00
|
|
|
const merge = require('webpack-merge')
|
|
|
|
|
|
|
|
const base = require('./webpack.config')
|
|
|
|
|
|
|
|
module.exports = merge(base, {
|
2019-08-06 08:20:02 -04:00
|
|
|
mode: 'production',
|
|
|
|
|
2019-10-16 06:10:54 -04:00
|
|
|
// Enable a full source map. Generates a comment linking to the source map
|
|
|
|
devtool: 'source-map',
|
2018-03-13 07:19:30 -04:00
|
|
|
|
2018-03-13 13:44:08 -04:00
|
|
|
output: {
|
|
|
|
// Override output path to minjs dir
|
2019-10-16 06:10:54 -04:00
|
|
|
path: path.join(__dirname, '/public/minjs'),
|
|
|
|
|
|
|
|
// Override filename to include hash for immutable caching
|
|
|
|
filename: '[name]-[chunkhash].js',
|
|
|
|
|
|
|
|
publicPath: '/minjs/'
|
2019-10-30 07:19:44 -04:00
|
|
|
}
|
2018-03-13 07:19:30 -04:00
|
|
|
})
|