From 5dd5e2c688a4d4462f5051ddb03ab76882702a02 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 08 十二月 2023 15:10:53 +0800
Subject: [PATCH] modified: src/page/index/logo.vue modified: vue.config.js
---
vue.config.js | 40 ++++++++++++++++++++--------------------
src/page/index/logo.vue | 1 -
2 files changed, 20 insertions(+), 21 deletions(-)
diff --git a/src/page/index/logo.vue b/src/page/index/logo.vue
index 8e02347..bb73091 100644
--- a/src/page/index/logo.vue
+++ b/src/page/index/logo.vue
@@ -71,7 +71,6 @@
},
created() {
this.sysTitle = localStorage.getItem('SYSTEM_LOGO_TITLE')
- console.log('userInfouserInfo', this.userInfo)
// this.getLogoInfo()
},
methods: {
diff --git a/vue.config.js b/vue.config.js
index abb5a5a..91b41a0 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -29,26 +29,26 @@
},
// eslint-disable-next-line
configureWebpack: (config) => {
- // if (process.env.NODE_ENV === 'production') {
- // // 浠呭湪鐢熶骇鐜涓嬪惎鐢ㄨ閰嶇疆
- // return {
- // plugins: [
- // /*new MonacoWebpackPlugin({
- // languages: ['javascript', 'css', 'html', 'json']
- // }),*/
- // new CompressionWebpackPlugin({
- // filename: '[path].gz[query]',
- // algorithm: 'gzip',
- // test: new RegExp(
- // '\\.(' + productionGzipExtensions.join('|') + ')$'
- // ),
- // threshold: 1024, // 鍙湁澶у皬澶т簬璇ュ�肩殑璧勬簮浼氳澶勭悊,褰撳墠閰嶇疆涓哄浜庤秴杩�1k鐨勬暟鎹繘琛屽鐞嗭紝涓嶈冻1k鐨勫彲鑳戒細瓒婂帇缂╄秺澶�
- // minRatio: 0.99, // 鍙湁鍘嬬缉鐜囧皬浜庤繖涓�肩殑璧勬簮鎵嶄細琚鐞�
- // deleteOriginalAssets: true // 鍒犻櫎鍘熸枃浠�
- // })
- // ]
- // }
- // }
+ if (process.env.NODE_ENV === 'production') {
+ // 浠呭湪鐢熶骇鐜涓嬪惎鐢ㄨ閰嶇疆
+ return {
+ plugins: [
+ /*new MonacoWebpackPlugin({
+ languages: ['javascript', 'css', 'html', 'json']
+ }),*/
+ new CompressionWebpackPlugin({
+ filename: '[path].gz[query]',
+ algorithm: 'gzip',
+ test: new RegExp(
+ '\\.(' + productionGzipExtensions.join('|') + ')$'
+ ),
+ threshold: 1024, // 鍙湁澶у皬澶т簬璇ュ�肩殑璧勬簮浼氳澶勭悊,褰撳墠閰嶇疆涓哄浜庤秴杩�1k鐨勬暟鎹繘琛屽鐞嗭紝涓嶈冻1k鐨勫彲鑳戒細瓒婂帇缂╄秺澶�
+ minRatio: 0.99, // 鍙湁鍘嬬缉鐜囧皬浜庤繖涓�肩殑璧勬簮鎵嶄細琚鐞�
+ deleteOriginalAssets: true // 鍒犻櫎鍘熸枃浠�
+ })
+ ]
+ }
+ }
},
// 閰嶇疆杞彂浠g悊
devServer: {
--
Gitblit v1.9.3