25 lines
771 B
JavaScript
25 lines
771 B
JavaScript
// 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()],
|
|
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"),
|
|
},
|
|
},
|
|
});
|