From 47f3736904aa1f8a67ddbab811a4ae1c2a297311 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 10 Apr 2023 12:42:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0launch.json=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9.env.front=E9=85=8D=E5=90=88debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit b9b8e99149b8978ab043934daf00202019d0aeac) --- .env.front | 15 +++++++++++++++ .vscode/launch.json | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.env.front b/.env.front index 2641417d..a63b6379 100644 --- a/.env.front +++ b/.env.front @@ -17,3 +17,18 @@ VITE_API_URL=/admin-api # 打包路径 VITE_BASE_PATH=/ + +# 项目本地运行端口号, 与.vscode/launch.json配合 +VITE_PORT=5173 + +# 是否删除debugger +VITE_DROP_DEBUGGER=false + +# 是否删除console.log +VITE_DROP_CONSOLE=false + +# 是否sourcemap +VITE_SOURCEMAP=true + +# 验证码的开关 +VITE_APP_CAPTCHA_ENABLE=false diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..e4093b3a --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "msedge", + "request": "launch", + "name": "Launch Edge against localhost", + "url": "http://localhost:5173", + "webRoot": "${workspaceFolder}/src", + "sourceMaps": true + } + ] +}