diff --git a/vite.config.js b/vite.config.js index 3b710b4..ee5058e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,6 +1,5 @@ import { defineConfig } from 'vite' import { VitePWA } from 'vite-plugin-pwa' -import { createHtmlPlugin } from 'vite-plugin-html' export default defineConfig({ build:{ minify:false }, @@ -21,20 +20,6 @@ export default defineConfig({ 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' }] } - }), - 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' }, - { tag:'style', children:'html,body{overscroll-behavior-y:contain}', injectTo:'head' }, - { tag:'script', children:"(()=>{let k,v=visualViewport;const f=()=>{removeEventListener('popstate',f),document.activeElement?.blur()};v.onresize=()=>{let o=v.height