Remove deprecated uglifyjs-webpack-plugin
This commit is contained in:
@ -4,7 +4,7 @@ console.log('Running in production mode'); // eslint-disable-line no-console
|
||||
const { merge } = require('webpack-merge');
|
||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||
const OfflinePlugin = require('offline-plugin');
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const CompressionPlugin = require('compression-webpack-plugin');
|
||||
const { output } = require('./configuration');
|
||||
const sharedConfig = require('./shared');
|
||||
@ -17,12 +17,12 @@ module.exports = merge(sharedConfig, {
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [
|
||||
new UglifyJsPlugin({
|
||||
new TerserPlugin({
|
||||
cache: true,
|
||||
parallel: true,
|
||||
sourceMap: true,
|
||||
|
||||
uglifyOptions: {
|
||||
terserOptions: {
|
||||
warnings: false,
|
||||
|
||||
output: {
|
||||
|
||||
Reference in New Issue
Block a user