feat(vscode): 配置开发任务在文件夹打开时自动运行 [skip ci]
This commit is contained in:
1
.vscode/tasks.json
vendored
1
.vscode/tasks.json
vendored
@@ -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": {
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||||
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"]
|
"@/*": ["./src/*"],
|
||||||
|
"~/*": ["./src/*"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user