Update vite.config.js

This commit is contained in:
2025-08-22 14:00:16 -07:00
committed by GitHub
parent 2b971d4fb7
commit a9193274bd

View File

@@ -1,10 +1,8 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa' import { VitePWA } from 'vite-plugin-pwa'
import htmlPlugin from 'vite-plugin-html-config'
export default defineConfig({ const pwa = VitePWA({
build: { outDir: 'docs' },
plugins: [
VitePWA({
registerType: 'autoUpdate', registerType: 'autoUpdate',
manifest: { manifest: {
id: 'https://sune.planetrenox.com/', id: 'https://sune.planetrenox.com/',
@@ -17,14 +15,22 @@ export default defineConfig({
theme_color: '#FFFFFF', theme_color: '#FFFFFF',
background_color: '#000000', background_color: '#000000',
categories: ['productivity', 'utilities'], categories: ['productivity', 'utilities'],
icons: [ icons: [{ src: 'https://sune.planetrenox.com/appstore_content/✺.png', sizes: '1024x1024', type: 'image/png' }],
{ src: 'https://sune.planetrenox.com/appstore_content/✺.png', sizes: '1024x1024', type: 'image/png' }
],
screenshots: [ screenshots: [
{ src: 'https://sune.planetrenox.com/appstore_content/screenshot1.jpg', sizes: '1344x2693', type: 'image/jpeg' }, { src: 'https://sune.planetrenox.com/appstore_content/screenshot1.jpg', sizes: '1344x2693', type: 'image/jpeg' },
{ src: 'https://sune.planetrenox.com/appstore_content/screenshot2.jpg', sizes: '1344x2699', type: 'image/jpeg' } { src: 'https://sune.planetrenox.com/appstore_content/screenshot2.jpg', sizes: '1344x2699', type: 'image/jpeg' }
] ]
} }
}) })
]
const html = htmlPlugin({
title: 'Sune',
metas: [{ name: 'viewport', content: 'width=device-width, initial-scale=1, viewport-fit=cover' }],
links: [{ rel: 'icon', type: 'image/avif', href: 'https://sune.planetrenox.com/✺.avif' }],
headScripts: [{ src: 'https://cdn.jsdelivr.net/npm/tiny-ripple@0.2.0' }]
})
export default defineConfig({
build: { outDir: 'docs' },
plugins: [html, pwa]
}) })