-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
60 lines (53 loc) · 1.29 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
49
50
51
52
53
54
55
56
57
58
59
60
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import WindiCSS from 'vite-plugin-windicss';
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
plugins: [
solidPlugin(),
WindiCSS(),
VitePWA({
registerType: 'autoUpdate',
minify: true,
strategies: 'generateSW',
injectRegister: null,
manifest: {
background_color: '#2C4F7C',
theme_color: '#2C4F7C',
short_name: 'Solid News',
name: 'Solid News',
description: 'Read stories from Hacker News',
display: 'standalone',
orientation: "portrait",
icons: [
{
src: "/images/logo.svg",
type: "image/svg+xml",
sizes: "512x512"
},
{
src: "/images/logo-512.png",
type: "image/png",
sizes: "512x512"
},
{
src: "/images/logo-192.png",
type: "image/png",
sizes: "192x192"
}
],
screenshots: [
{
src: "/images/cover.png",
type: "image/png",
sizes: "1200x628"
}
]
}
})
],
build: {
target: 'esnext',
polyfillDynamicImport: false,
},
});