-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
48 lines (47 loc) · 1.37 KB
/
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
47
48
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 { qwikSpeakInline } from 'qwik-speak/inline'
import { VitePWA } from 'vite-plugin-pwa'
import { qwikReact } from '@builder.io/qwik-react/vite'
import { partytownVite } from '@builder.io/partytown/utils'
import { join } from 'path'
export default defineConfig(() => {
return {
plugins: [
VitePWA({
registerType: 'autoUpdate',
devOptions: {
enabled: true,
},
injectRegister: null,
includeAssets: ['favicon.svg'],
manifest: {
name: 'Qwik Fucking Around',
short_name: 'Aleph QFA',
description: 'Messing around qwik',
theme_color: '#ffffff',
icons: [
{
src: 'favicon.svg',
sizes: '48x48 72x72 96x96 128x128 256x256 512x512',
type: 'image/svg+xml',
purpose: 'any maskable',
},
],
},
}),
qwikCity(),
qwikVite(),
qwikSpeakInline({
supportedLangs: ['en-US', 'zh-HK'],
defaultLang: 'en-US',
assetsPath: 'i18n'
}),
tsconfigPaths(),
qwikReact(),
partytownVite({ dest: join(__dirname, 'dist', '~partytown') }),
],
}
})