webpack minimze & npm update
This commit is contained in:
@@ -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: {
|
||||
|
||||
Generated
+8499
-13308
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user