2021-03-05 19:29:28 -05:00
|
|
|
const { merge } = require('webpack-merge')
|
|
|
|
const common = require('./webpack.common.js')
|
|
|
|
|
|
|
|
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin')
|
|
|
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
|
|
|
|
const webpack = require('webpack')
|
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
mode: 'production',
|
|
|
|
plugins: [
|
|
|
|
new CleanWebpackPlugin(),
|
|
|
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
2021-11-12 16:04:09 -05:00
|
|
|
new LodashModuleReplacementPlugin()
|
2021-03-05 19:29:28 -05:00
|
|
|
]
|
|
|
|
})
|