mirror of
https://github.com/multipleof4/sune.git
synced 2026-01-14 16:47:59 +00:00
Update vite.config.js
This commit is contained in:
@@ -2,7 +2,10 @@ import { defineConfig } from 'vite'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
import { createHtmlPlugin } from 'vite-plugin-html'
|
||||
|
||||
const pwa = VitePWA({
|
||||
export default defineConfig({
|
||||
build:{ minify:false },
|
||||
plugins:[
|
||||
VitePWA({
|
||||
registerType:'autoUpdate',
|
||||
manifest:{
|
||||
id:'https://sune.planetrenox.com/',
|
||||
@@ -16,14 +19,10 @@ 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' }
|
||||
]
|
||||
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({
|
||||
}),
|
||||
createHtmlPlugin({
|
||||
minify:false,
|
||||
inject:{
|
||||
tags:[
|
||||
@@ -31,9 +30,11 @@ tags: [
|
||||
{ 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' }
|
||||
{ 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:'style', children:'#htmlEditor{outline:none;white-space:pre!important}', injectTo:'head' }
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
export default defineConfig({ build: { minify: false }, plugins: [pwa, html] })
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user