Update SvelteKitPWA config
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
69ec57cb0d
commit
dd4b3b5373
8 changed files with 5 additions and 16 deletions
BIN
frontend/splash.webp
Normal file
BIN
frontend/splash.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 136 KiB |
|
@ -12,7 +12,7 @@
|
|||
</script>
|
||||
|
||||
{#if visible}
|
||||
<img transition:fade src="/splash.jpeg" alt="splash" />
|
||||
<img transition:fade src="/splash.webp" alt="splash" />
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
|
||||
<Header></Header>
|
||||
<img src='/splash.jpeg' alt='splash'>
|
||||
<img src='/splash.webp' alt='splash'>
|
||||
|
||||
<div bind:this={divider} id='divider'>
|
||||
<div id='banner'>
|
||||
|
@ -70,4 +70,4 @@
|
|||
font-size: 14px;
|
||||
text-align: rightìì;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 11 MiB |
BIN
frontend/static/images/splash-background.webp
Normal file
BIN
frontend/static/images/splash-background.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 136 KiB |
|
@ -7,12 +7,6 @@ const config = {
|
|||
// for more information about preprocessors
|
||||
preprocess: vitePreprocess(),
|
||||
kit: {
|
||||
files: {
|
||||
serviceWorker: 'src/sw.ts',
|
||||
},
|
||||
serviceWorker: {
|
||||
register: false
|
||||
},
|
||||
adapter: adapter({
|
||||
precompress: false,
|
||||
}),
|
||||
|
|
|
@ -5,12 +5,7 @@ import { SvelteKitPWA } from '@vite-pwa/sveltekit'
|
|||
const config = {
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
SvelteKitPWA({
|
||||
registerType: 'autoUpdate',
|
||||
strategies: 'injectManifest',
|
||||
srcDir: 'src',
|
||||
filename: 'sw.ts',
|
||||
})
|
||||
SvelteKitPWA()
|
||||
],
|
||||
test: {
|
||||
include: ["src/**/*.{test,spec}.{js,ts}"],
|
||||
|
@ -26,4 +21,4 @@ const config = {
|
|||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
export default config;
|
||||
|
|
Loading…
Reference in a new issue