Added the alias resolver to the vite config

This commit is contained in:
2022-09-12 00:55:33 +02:00
parent 330b24443c
commit ef20900793

View File

@ -1,6 +1,12 @@
import { defineConfig } from 'vite' import {defineConfig} from 'vite'
import path from "path";
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
export default defineConfig({ export default defineConfig({
plugins: [react()] plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
}) })