-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
35 lines (33 loc) · 903 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
/// <reference types="vitest" />
import { defineConfig } from 'vite'
import { VitePluginNode } from 'vite-plugin-node'
import liveReload from 'vite-plugin-live-reload'
import Terminal from 'vite-plugin-terminal'
import * as path from 'path'
export default defineConfig({
server: {
// vite server configs, for details see [vite doc](https://vitejs.dev/config/#server-host)
host: '0.0.0.0',
port: 5000,
watch: {
usePolling: true
}
},
plugins: [
...VitePluginNode({
adapter: 'express',
appPath: './src/index.ts',
exportName: 'viteNodeApp',
tsCompiler: 'esbuild'
}),
liveReload('./src/**/*.ts'),
Terminal()
],
clearScreen: false,
logLevel: 'info',
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
})