feat: configuration alias
This commit is contained in:
1 parent
7af91abc3d
commit
3f8e4c7757
2 files changed
+9
-3
No files matched your search
@@ -30,6 +30,12 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': join(__dirname, '../src/renderer/src'),
|
||||
'src': join(__dirname, '../src'),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: pkg.env.HOST,
|
||||
port: pkg.env.PORT,
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"root/*": ["./*"],
|
||||
"@/*": ["src/renderer/*"]
|
||||
"@/*": ["src/renderer/src/*"],
|
||||
"src/*": ["src/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user