Added resolvers to the vite.config.js
This commit is contained in:
parent
9828d6cfab
commit
e621c4f832
@ -1,6 +1,15 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import {defineConfig} from "vite";
|
||||
import path from "path";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@contexts": path.resolve(__dirname, "./src/common/contexts"),
|
||||
"@components": path.resolve(__dirname, "./src/common/components"),
|
||||
"@states": path.resolve(__dirname, "./src/states"),
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user