-
Notifications
You must be signed in to change notification settings - Fork 12
/
vite.config.ts
46 lines (45 loc) · 918 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
36
37
38
39
40
41
42
43
44
45
46
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import checker from 'vite-plugin-checker';
export default defineConfig({
plugins: [
react(),
checker({
typescript: true,
}),
],
resolve: {
alias: [
{
find: '@elastic/eui/src/',
replacement: '@elastic/eui/es/',
},
],
},
build: {
manifest: true,
rollupOptions: {
input: '/src/ts/index.tsx',
output: {
entryFileNames: `build/[name].js`,
chunkFileNames: `build/[name].js`,
assetFileNames: `build/[name].[ext]`,
},
},
outDir: '../public/',
},
css: {
preprocessorOptions: {
// Silence deprecation warnings for EUI stylesheets
quietDeps: true,
},
},
server: {
origin: 'http://localhost:5173',
// We depend upon this port number in a few places, so fail fast if we cannot allocate it.
strictPort: true,
fs: {
allow: ['../public/fonts', './'],
},
},
});