Using webpack aliases has no tips.
Create a jsconfig.json file in the root of your project.
The content like this ↓↓↓↓
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules","dist", "public","build"],
}