-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
33 lines (32 loc) · 895 Bytes
/
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
import react from "@vitejs/plugin-react"
import path from "path"
import { defineConfig } from "vite"
import { viteStaticCopy } from 'vite-plugin-static-copy';
export default defineConfig({
plugins: [
react(),
viteStaticCopy({
targets: [
{
src: 'public/manifest.json',
dest: '.',
},
{
src: 'src/assets/images',
dest: './assets/',
}
],
}),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"@images": path.resolve(__dirname, "./src/assets/images"),
"@ui": path.resolve(__dirname, "/src/components/ui"),
"@layout": path.resolve(__dirname, "/src/components/layout"),
"@providers": path.resolve(__dirname, "/src/providers"),
"@lib": path.resolve(__dirname, "/src/lib"),
"@services": path.resolve(__dirname, "/src/services"),
},
},
})