Skip to content

Commit b9b8e99

Browse files
committed
feat: 添加launch.json,修改.env.front配合debug
1 parent 053ee54 commit b9b8e99

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.env.front

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,18 @@ VITE_API_URL=/admin-api
1717

1818
# 打包路径
1919
VITE_BASE_PATH=/
20+
21+
# 项目本地运行端口号, 与.vscode/launch.json配合
22+
VITE_PORT=5173
23+
24+
# 是否删除debugger
25+
VITE_DROP_DEBUGGER=false
26+
27+
# 是否删除console.log
28+
VITE_DROP_CONSOLE=false
29+
30+
# 是否sourcemap
31+
VITE_SOURCEMAP=true
32+
33+
# 验证码的开关
34+
VITE_APP_CAPTCHA_ENABLE=false

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "msedge",
9+
"request": "launch",
10+
"name": "Launch Edge against localhost",
11+
"url": "http://localhost:5173",
12+
"webRoot": "${workspaceFolder}/src",
13+
"sourceMaps": true
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)