Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Vue Router 4 for Everyone

The Scaffolded Codebase (Vite Only)

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.



The updated option for providing an alias to vite is resolve.alias.

Somthing like this:

export default defineConfig({
  resolve: {
    alias: {
      '@' : path.resolve(__dirname, './src')