webpack minimze & npm update

This commit is contained in:
2023-02-19 21:57:20 +01:00
parent 083f620527
commit 877d10b4d2
3 changed files with 8518 additions and 13326 deletions
+17 -16
View File
@@ -5,7 +5,7 @@ const merge = require('webpack-merge')
const baseConfig = require('./webpack.config.base') const baseConfig = require('./webpack.config.base')
const MiniCssExtractPlugin = require('mini-css-extract-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin')
// const UglifyJSPlugin = require('uglifyjs-webpack-plugin') const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
// ERROR in vendor.js from UglifyJs // ERROR in vendor.js from UglifyJs
// RangeError: Maximum call stack size exceeded // RangeError: Maximum call stack size exceeded
@@ -15,22 +15,23 @@ module.exports = merge(baseConfig, {
publicPath: '/' publicPath: '/'
}, },
optimization: { optimization: {
// minimizer: [ minimize: true,
// new UglifyJSPlugin({ minimizer: [
// uglifyOptions: { new UglifyJSPlugin({
// // Eliminate comments uglifyOptions: {
// comments: false, // Eliminate comments
// // remove warnings comments: false,
// remove warnings
// warnings: false, // warnings: false,
// minimize: false, minimize: false,
// mangle: false, mangle: false,
// compress: { compress: {
// // Drop console statements // Drop console statements
// drop_console: true, drop_console: true,
// } }
// } }
// }) })
// ], ],
splitChunks: { splitChunks: {
cacheGroups: { cacheGroups: {
commons: { commons: {
+8667 -13476
View File
File diff suppressed because it is too large Load Diff