Hello.
I am struggling to understand how resolve.alias works.
I installed a fresh Vue project with standard vite.config.ts and it comes with a @ alias and It works both on .vue and .ts files.
But it doesn't with .scss files. It kind of works only in 1 file in the root of the Place I'm linking to, so it's very strange.
Example: It works on a file named main.scss in the src/assets/styles/
The code is:
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@styles': fileURLToPath(new URL('./src/assets/styles', import.meta.url))
}
}
I'm baffled, the documentation doesn't Say much about it and online I can't find exaustive updated answers... Please help me 😦
P.S: I wanted to upload an image but, on phone, I don't see a way.