feat(vscode): 配置开发任务在文件夹打开时自动运行 [skip ci]

This commit is contained in:
严浩
2025-11-10 00:46:18 +08:00
parent 386b65cd05
commit 2440605fce
3 changed files with 4 additions and 1 deletions

1
.vscode/tasks.json vendored
View File

@@ -6,6 +6,7 @@
"script": "dev", "script": "dev",
"label": "🚀 dev", "label": "🚀 dev",
"detail": "启动开发服务器", "detail": "启动开发服务器",
"runOptions": { "runOn": "folderOpen" },
"problemMatcher": { "problemMatcher": {
"pattern": { "regexp": "." }, "pattern": { "regexp": "." },
"background": { "background": {

View File

@@ -14,7 +14,8 @@
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"],
"~/*": ["./src/*"]
} }
} }
} }

View File

@@ -40,6 +40,7 @@ export default defineConfig(async (configEnv) => {
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)), '@': fileURLToPath(new URL('./src', import.meta.url)),
'~': fileURLToPath(new URL('./src', import.meta.url)),
}, },
}, },
define: { define: {