This repository was archived by the owner on Apr 11, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
50 lines (49 loc) · 1.48 KB
/
vite.config.js
File metadata and controls
50 lines (49 loc) · 1.48 KB
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
import { defineConfig } from "vite";
import { viteSingleFile } from "vite-plugin-singlefile";
import { ViteMinifyPlugin } from 'vite-plugin-minify';
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
plugins: [
viteSingleFile(),
ViteMinifyPlugin({
collapseWhitespace: true,
removeComments: true,
minifyCSS: true,
minifyJS: true,
}),
VitePWA({
registerType: 'autoUpdate',
manifest: {
name: 'Newspaper Generator',
short_name: 'Ink.Annals',
icons: [
{
src: 'assets/web-app-manifest-192x192.png',
sizes: '192x192',
type: 'image/png',
"purpose": "maskable"
},
{
src: 'assets/web-app-manifest-512x512.png',
sizes: '512x512',
type: 'image/png',
"purpose": "maskable"
}
],
"theme_color": "#f2f2f7",
"background_color": "#f2f2f7",
"display": "standalone"
}
})
],
build: {
target: "esnext",
assetsInlineLimit: 100000000,
minify: "terser",
terserOptions: {
compress: {
drop_console: true,
},
},
},
});