2021-02-10 19:32:11 +00:00
|
|
|
const webpack = require('webpack')
|
|
|
|
const merge = require('webpack-merge')
|
|
|
|
const common = require('./webpack.config')
|
2021-05-04 14:49:10 +00:00
|
|
|
const WebpackAssetsManifest = require('webpack-assets-manifest')
|
2020-11-12 16:28:24 +00:00
|
|
|
|
|
|
|
module.exports = merge.merge(common, {
|
|
|
|
mode: 'production',
|
2021-05-08 19:37:37 +00:00
|
|
|
output: {
|
|
|
|
filename: '[name].[hash].js'
|
|
|
|
},
|
2021-02-10 19:32:11 +00:00
|
|
|
devtool: 'source-map',
|
|
|
|
plugins: [
|
2021-05-04 14:49:10 +00:00
|
|
|
new webpack.IgnorePlugin(/axe-core/),
|
|
|
|
new WebpackAssetsManifest({
|
|
|
|
output: '_data/assets.json'
|
|
|
|
})
|
2021-02-10 19:32:11 +00:00
|
|
|
]
|
2020-11-12 16:28:24 +00:00
|
|
|
});
|