forked from mmmray/xray-online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
26 lines (25 loc) · 1002 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
import tsconfigPaths from 'vite-tsconfig-paths'
import { fileURLToPath, URL } from 'node:url'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths()],
publicDir: 'public',
base: '/xray-monaco-editor/',
build: {
target: 'esNext',
outDir: 'dist'
},
resolve: {
alias: {
'@entitites': fileURLToPath(new URL('./src/entitites', import.meta.url)),
'@features': fileURLToPath(new URL('./src/features', import.meta.url)),
'@pages': fileURLToPath(new URL('./src/pages', import.meta.url)),
'@widgets': fileURLToPath(new URL('./src/widgets', import.meta.url)),
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@public': fileURLToPath(new URL('./public', import.meta.url)),
'@shared': fileURLToPath(new URL('./src/shared', import.meta.url))
}
}
})