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
+18 -17
View File
@@ -5,7 +5,7 @@ const merge = require('webpack-merge')
const baseConfig = require('./webpack.config.base')
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
// RangeError: Maximum call stack size exceeded
@@ -15,22 +15,23 @@ module.exports = merge(baseConfig, {
publicPath: '/'
},
optimization: {
// minimizer: [
// new UglifyJSPlugin({
// uglifyOptions: {
// // Eliminate comments
// comments: false,
// // remove warnings
// warnings: false,
// minimize: false,
// mangle: false,
// compress: {
// // Drop console statements
// drop_console: true,
// }
// }
// })
// ],
minimize: true,
minimizer: [
new UglifyJSPlugin({
uglifyOptions: {
// Eliminate comments
comments: false,
// remove warnings
// warnings: false,
minimize: false,
mangle: false,
compress: {
// Drop console statements
drop_console: true,
}
}
})
],
splitChunks: {
cacheGroups: {
commons: {
+8499 -13308
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -10,7 +10,7 @@
<section class="row">
<div class="col-2" />
<div class="col-8 teasers">
<div v-if="colophonHome.length && colophonHome.length > 0" class="wrapper">
<div v-if="colophonHome.length && colophonHome.length > 0" class="wrapper">
<article
v-for="page in colophonHome"
:key="page.uuid"