webpack/template/webpack.prod.js
const { merge } = require('webpack-merge');
const HtmlMinimizerPlugin = require("html-minimizer-webpack-plugin");
const TerserPlugin = require("terser-webpack-plugin");
const common = require('./webpack.common.js');
module.exports = merge(common, {
mode: 'production',
optimization: {
minimize: true,
minimizer: [
new HtmlMinimizerPlugin(),
new TerserPlugin()
],
},
});