-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.serve.config.ts
More file actions
25 lines (23 loc) · 761 Bytes
/
vite.serve.config.ts
File metadata and controls
25 lines (23 loc) · 761 Bytes
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
import baseViteConfig from './vite.config';
import { defineConfig } from 'vite';
import { fileURLToPath } from 'url';
import { glyphApi } from './config/glyphs/glyphs-v1';
import { glyphApiV2 } from './config/glyphs/glyphs-v2';
export default defineConfig({
...baseViteConfig,
base: '',
plugins: [...(baseViteConfig.plugins ?? []), glyphApi(), glyphApiV2()],
root: fileURLToPath(new URL('./playground', import.meta.url)),
publicDir: fileURLToPath(new URL('./public', import.meta.url)),
server: {
port: 3000,
warmup: {
clientFiles: [
'./styles/**/*.ts',
'./components/*.{js,ts,jsx,tsx,html,css,svelte,vue}',
'./playground/**/*.{js,ts,jsx,tsx,html,css,svelte,vue}',
],
ssrFiles: [],
},
},
});