New Tasks
This commit is contained in:
+21
-4
@@ -1,7 +1,24 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
// import fs from "fs";
|
||||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()]
|
||||
})
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
Components: path.resolve(dirname, "./src/components"),
|
||||
Pages: path.resolve(dirname, "./src/pages"),
|
||||
Utils: path.resolve(dirname, "./src/utils"),
|
||||
Assets: path.resolve(dirname, "./src/assets"),
|
||||
Context: path.resolve(dirname, "./src/context"),
|
||||
Routes: path.resolve(dirname, "./src/routes"),
|
||||
Hooks: path.resolve(dirname, "./src/hooks"),
|
||||
Src: path.resolve(dirname, "./src"),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user