In this lesson, we take a look at the files that Vite produces for us. We also configure Vite to support the @
alias that you're probably used to using if you're coming from the Vue CLI.
Links
Notes
The updated option for providing an alias to vite is resolve.alias
.
Somthing like this:
export default defineConfig({
resolve: {
alias: {
'@' : path.resolve(__dirname, './src')
},
},
});