1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00
smov/vite.config.ts

19 lines
606 B
TypeScript
Raw Normal View History

2022-12-13 23:19:07 +01:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
components: path.resolve(__dirname, "./src/components"),
hooks: path.resolve(__dirname, "./src/hooks"),
state: path.resolve(__dirname, "./src/state"),
providers: path.resolve(__dirname, "./src/providers"),
views: path.resolve(__dirname, "./src/views"),
utils: path.resolve(__dirname, "./src/utils"),
mw_constants: path.resolve(__dirname, "./src/mw_constants"),
},
},
});