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