generated from pieceowater-dev/openAPI-frontend-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
35 lines (32 loc) · 887 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
34
35
import path from 'path'
import { defineConfig } from 'vite'
import checker from 'vite-plugin-checker'
import svgr from 'vite-plugin-svgr'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [
react(),
checker({
overlay: { initialIsOpen: false },
}),
svgr(),
],
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
alias: {
'@': path.resolve(__dirname, './src/'),
app: `${path.resolve(__dirname, './src/app/')}`,
entities: `${path.resolve(__dirname, './src/entities/')}`,
features: path.resolve(__dirname, './src/features'),
pages: `${path.resolve(__dirname, './src/pages')}`,
shared: `${path.resolve(__dirname, './src/shared')}`,
widget: `${path.resolve(__dirname, './src/widget')}`,
},
},
server: {
watch: {
usePolling: true,
},
host: true,
},
})