|
|
@ -2,11 +2,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
const { merge } = require('webpack-merge');
|
|
|
|
const { merge } = require('webpack-merge');
|
|
|
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
|
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
|
|
|
|
|
|
const ProgressPlugin = require('progress-webpack-plugin');
|
|
|
|
|
|
|
|
|
|
|
|
const common = require('./webpack.common');
|
|
|
|
const common = require('./webpack.common');
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
module.exports = merge(common, {
|
|
|
|
mode: 'production',
|
|
|
|
mode: 'production',
|
|
|
|
|
|
|
|
plugins: [
|
|
|
|
|
|
|
|
new ProgressPlugin(true),
|
|
|
|
|
|
|
|
],
|
|
|
|
optimization: {
|
|
|
|
optimization: {
|
|
|
|
minimize: true,
|
|
|
|
minimize: true,
|
|
|
|
minimizer: [
|
|
|
|
minimizer: [
|
|
|
|