You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
369 B
JavaScript
20 lines
369 B
JavaScript
'use strict';
|
|
|
|
const { merge } = require('webpack-merge');
|
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
|
|
const common = require('./webpack.common');
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'production',
|
|
optimization: {
|
|
minimize: true,
|
|
minimizer: [
|
|
new TerserPlugin({
|
|
minify: TerserPlugin.esbuildMinify,
|
|
terserOptions: {},
|
|
}),
|
|
],
|
|
},
|
|
});
|