From 8caf427556921d82c53fb1d54bcf150e79d3def7 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期五, 20 三月 2026 15:23:35 +0800
Subject: [PATCH] 调整
---
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