feat: Webpack 路径别名优化
This commit is contained in:
@@ -2,7 +2,26 @@
|
||||
"compilerOptions": {
|
||||
"baseUrl": "src",
|
||||
"paths": {
|
||||
"*": ["src/*"]
|
||||
"@/*": ["./*"],
|
||||
"@assets/*": ["assets/*"],
|
||||
"@components/*": ["components/*"],
|
||||
"@constants/*": ["constants/*"],
|
||||
"@contexts/*": ["contexts/*"],
|
||||
"@data/*": ["data/*"],
|
||||
"@hooks/*": ["hooks/*"],
|
||||
"@layouts/*": ["layouts/*"],
|
||||
"@lib/*": ["lib/*"],
|
||||
"@mocks/*": ["mocks/*"],
|
||||
"@providers/*": ["providers/*"],
|
||||
"@routes/*": ["routes/*"],
|
||||
"@services/*": ["services/*"],
|
||||
"@store/*": ["store/*"],
|
||||
"@styles/*": ["styles/*"],
|
||||
"@theme/*": ["theme/*"],
|
||||
"@utils/*": ["utils/*"],
|
||||
"@variables/*": ["variables/*"],
|
||||
"@views/*": ["views/*"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"exclude": ["node_modules", "build", "dist"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user