-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.ts
31 lines (30 loc) · 785 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
import { defineConfig } from 'vite';
import { qwikVite } from '@builder.io/qwik/optimizer';
import { qwikCity } from '@builder.io/qwik-city/vite';
import tsconfigPaths from 'vite-tsconfig-paths';
// import '@oddbird/popover-polyfill';
export default defineConfig(() => {
return {
plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
preview: {
headers: {
'Cache-Control': 'public, max-age=600',
},
},
// build: {
// cssMinify: 'lightningcss' as const,
// },
css: {
// transformer: 'lightningcss' as const,
// lightningcss: {
// drafts: {
// nesting: true,
// customMedia: true
// }
// },
modules: {
localsConvention: 'camelCaseOnly' as const
}
}
};
});