forked from crobi/dnd5e-quickref
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.ts
More file actions
36 lines (31 loc) · 746 Bytes
/
Copy pathvite.config.ts
File metadata and controls
36 lines (31 loc) · 746 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
26
27
28
29
30
31
32
33
34
35
36
import { defineConfig } from 'vite';
import checker from 'vite-plugin-checker';
export default defineConfig({
base: './',
plugins: [
checker({
typescript: { tsconfigPath: './tsconfig.app.json' },
overlay: { initialIsOpen: false },
}),
],
build: {
outDir: 'dist',
sourcemap: true,
cssMinify: 'lightningcss',
// Inline assets up to 10KB as base64 data URIs — covers all icon webp files
// (~5KB avg, ~10KB max), eliminating 90 separate HTTP requests in production.
assetsInlineLimit: 10240,
rollupOptions: {
output: {
manualChunks: undefined,
},
},
},
css: {
transformer: 'lightningcss',
},
server: {
open: true,
strictPort: false,
},
});