From 155dbc01da52ccee7a968bfe7297b5fc0357e6bb Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期五, 20 三月 2026 16:12:20 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/show-demo' into show_demo

---
 vue.config.js |   33 +++++++++++++++++++++------------
 1 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index ebe8e06..e3d3c50 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,6 +1,7 @@
 const path = require('path')
 const CompressionPlugin = require('compression-webpack-plugin')
 const GenerateFilePlugin = require('generate-file-webpack-plugin')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
 
 function resolve(dir) {
   return path.join(__dirname, dir)
@@ -20,6 +21,15 @@
   // 鎵撳寘app鏃舵斁寮�璇ラ厤缃�
   // publicPath:'./',
   configureWebpack: config => {
+    // 澶嶅埗 video-test 鏂囦欢澶瑰埌 public 鐩綍 (宸叉敞閲婏紝涓嶅啀鑷姩澶嶅埗)
+    // config.plugins.push(
+    //   new CopyWebpackPlugin([{
+    //     from: path.resolve(__dirname, '../video-test'),
+    //     to: 'video-test',
+    //     ignore: ['.*']
+    //   }])
+    // )
+
     // 鐢熶骇鐜鍙栨秷 console.log
     if (process.env.NODE_ENV === 'production') {
       config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
@@ -101,18 +111,17 @@
   devServer: {
     port: 10086,
     open: true,
-    host:"0.0.0.0"
-    // public: '25.30.13.141:3000'
-    // proxy: {
-    //   '/cube': {
-    //     target: 'http://localhost:8080', // 璇锋眰鏈湴 cube鍚庡彴椤圭洰
-    //     ws: false,
-    //     changeOrigin: true,
-    //     pathRewrite: {
-    //       '/cube': '' // 榛樿鎵�鏈夎姹傞兘鍔犱簡cube鍓嶇紑锛岄渶瑕佸幓鎺�
-    //     }
-    //   }
-    // }
+    host:"0.0.0.0",
+    proxy: {
+      '/cube': {
+        target: 'http://localhost:8080',
+        ws: false,
+        changeOrigin: true,
+        pathRewrite: {
+          '/cube': ''
+        }
+      }
+    }
   },
 
   lintOnSave: undefined

--
Gitblit v1.8.0