-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
34 lines (34 loc) · 1.3 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import dynamicImport from "vite-plugin-dynamic-import";
import { fileURLToPath, URL } from "url";
import tailwind from "tailwindcss";
import autoprefixer from "autoprefixer";
import svgLoader from "vite-svg-loader";
// https://vitejs.dev/config/
export default defineConfig({
css: {
postcss: {
plugins: [tailwind(), autoprefixer()],
},
},
resolve: {
alias: {
"@constants": fileURLToPath(
new URL("./src/core/constants", import.meta.url)
),
"@assets": fileURLToPath(new URL("./src/assets", import.meta.url)),
"@router": fileURLToPath(new URL("./src/core/routers", import.meta.url)),
"@guards": fileURLToPath(new URL("./src/core/guards", import.meta.url)),
"@pages": fileURLToPath(new URL("./src/pages", import.meta.url)),
"@helpers": fileURLToPath(new URL("./src/core/helpers", import.meta.url)),
"@types": fileURLToPath(new URL("./src/core/types", import.meta.url)),
"@stores": fileURLToPath(new URL("./src/core/stores", import.meta.url)),
"@interfaces": fileURLToPath(
new URL("./src/shared/interfaces", import.meta.url)
),
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
plugins: [vue(), dynamicImport(), svgLoader()],
});