Added a resolver to the vite.config.js

This commit is contained in:
Mathias Wagner 2023-06-08 22:31:49 +02:00
parent 09213dff14
commit bc687ca6f9

View File

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