From 15db95dac468079601b2ad24ba1d84c4b5602272 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 28 Aug 2025 08:47:44 -0700 Subject: [PATCH] Update vite.config.js --- vite.config.js | 56 +++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/vite.config.js b/vite.config.js index 4706496..10a099f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,37 +3,37 @@ import { VitePWA } from 'vite-plugin-pwa' import { createHtmlPlugin } from 'vite-plugin-html' const pwa = VitePWA({ - registerType: 'autoUpdate', - manifest: { - id: 'https://sune.planetrenox.com/', - name: 'Sune', - short_name: 'Sune', - description: 'OpenRouter GUI Frontend', - start_url: 'https://sune.planetrenox.com/', - display: 'standalone', - orientation: 'portrait', - theme_color: '#FFFFFF', - background_color: '#000000', - categories: ['productivity','utilities'], - icons: [{ src: 'https://sune.planetrenox.com/appstore_content/✺.png', sizes: '1024x1024', type: 'image/png' }], - screenshots: [ - { 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' } - ] - } +registerType: 'autoUpdate', +manifest: { +id: 'https://sune.planetrenox.com/', +name: 'Sune', +short_name: 'Sune', +description: 'OpenRouter GUI Frontend', +start_url: 'https://sune.planetrenox.com/', +display: 'standalone', +orientation: 'portrait', +theme_color: '#FFFFFF', +background_color: '#000000', +categories: ['productivity','utilities'], +icons: [{ src: 'https://sune.planetrenox.com/appstore_content/✺.png', sizes: '1024x1024', type: 'image/png' }], +screenshots: [ +{ 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' } +] +} }) const html = createHtmlPlugin({ - minify: false, - inject: { - tags: [ - { tag: 'meta', attrs: { charset: 'utf-8' }, injectTo: 'head' }, - { tag: 'title', children: 'Sune', injectTo: 'head' }, - { tag: 'link', attrs: { rel: 'icon', type: 'image/avif', href: 'https://sune.planetrenox.com/✺.avif' }, injectTo: 'head' }, - { tag: 'script', attrs: { src: 'https://cdn.jsdelivr.net/npm/tiny-ripple@0.2.0' }, injectTo: 'head' }, - { tag: 'style', children: ':root{--safe-bottom:env(safe-area-inset-bottom)}::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:999px}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}', injectTo: 'head' } - ] - } +minify: false, +inject: { +tags: [ +{ tag: 'meta', attrs: { charset: 'utf-8' }, injectTo: 'head' }, +{ tag: 'title', children: 'Sune', injectTo: 'head' }, +{ tag: 'link', attrs: { rel: 'icon', type: 'image/avif', href: 'https://sune.planetrenox.com/✺.avif' }, injectTo: 'head' }, +{ tag: 'script', attrs: { src: 'https://cdn.jsdelivr.net/npm/tiny-ripple@0.2.0' }, injectTo: 'head' }, +{ tag: 'style', children: ':root{--safe-bottom:env(safe-area-inset-bottom)}::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:999px}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}html,body{overscroll-behavior-y:contain}#htmlEditor{outline:none;white-space:pre!important}', injectTo: 'head' } +] +} }) export default defineConfig({ build: { minify: false }, plugins: [pwa, html] })