Added a resolver to the vite.config.js
This commit is contained in:
1 parent
09213dff14
commit
bc687ca6f9
1 file changed
+6
@@ -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"),
|
||||
},
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user