From 5a9630b08ae608e2248c44271d8c08e140a4487b Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期四, 26 九月 2024 15:55:13 +0800
Subject: [PATCH] update
---
vue.config.js | 33 +++++++++++++++++----------------
1 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 243647b..168df3c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -40,11 +40,11 @@
// 鐢熶骇鐜锛屽紑鍚痡s\css鍘嬬缉
if (process.env.NODE_ENV === 'production') {
- config.plugin('compressionPlugin').use(new CompressionPlugin({
- test: /\.(js|css|less)$/, // 鍖归厤鏂囦欢鍚�
- threshold: 10240, // 瀵硅秴杩�10k鐨勬暟鎹帇缂�
- deleteOriginalAssets: false // 涓嶅垹闄ゆ簮鏂囦欢
- }))
+ config.plugin('compressionPlugin').use(new CompressionPlugin({
+ test: /\.(js|css|less)$/, // 鍖归厤鏂囦欢鍚�
+ threshold: 10240, // 瀵硅秴杩�10k鐨勬暟鎹帇缂�
+ deleteOriginalAssets: false // 涓嶅垹闄ゆ簮鏂囦欢
+ }))
}
// 閰嶇疆 webpack 璇嗗埆 markdown 涓烘櫘閫氱殑鏂囦欢
@@ -60,9 +60,9 @@
.rule('vxe')
.test(/\.js$/)
.include
- .add(resolve('node_modules/vxe-table'))
- .add(resolve('node_modules/vxe-table-plugin-antd'))
- .end()
+ .add(resolve('node_modules/vxe-table'))
+ .add(resolve('node_modules/vxe-table-plugin-antd'))
+ .end()
.use()
.loader('babel-loader')
.end()
@@ -84,15 +84,16 @@
devServer: {
port: 3000,
+ open: true,
proxy: {
- /* '/api': {
- target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API鎺ュ彛绯荤粺
- ws: false,
- changeOrigin: true,
- pathRewrite: {
- '/jeecg-boot': '' //榛樿鎵�鏈夎姹傞兘鍔犱簡jeecg-boot鍓嶇紑锛岄渶瑕佸幓鎺�
- }
- }, */
+ /* '/api': {
+ target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API鎺ュ彛绯荤粺
+ ws: false,
+ changeOrigin: true,
+ pathRewrite: {
+ '/jeecg-boot': '' //榛樿鎵�鏈夎姹傞兘鍔犱簡jeecg-boot鍓嶇紑锛岄渶瑕佸幓鎺�
+ }
+ }, */
'/jeecg-boot': {
target: 'http://localhost:8080', // 璇锋眰鏈湴 闇�瑕乯eecg-boot鍚庡彴椤圭洰
ws: false,
--
Gitblit v1.9.3