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 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,
// warnings: false, // remove warnings
// minimize: false, // warnings: false,
// mangle: false, minimize: false,
// compress: { mangle: false,
// // Drop console statements compress: {
// drop_console: true, // Drop console statements
// } drop_console: true,
// } }
// }) }
// ], })
],
splitChunks: { splitChunks: {
cacheGroups: { cacheGroups: {
commons: { 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"> <section class="row">
<div class="col-2" /> <div class="col-2" />
<div class="col-8 teasers"> <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 <article
v-for="page in colophonHome" v-for="page in colophonHome"
:key="page.uuid" :key="page.uuid"