Compare commits
2 Commits
b6a8bd0461
...
78fc63fe29
Author | SHA1 | Date |
---|---|---|
Fred Boniface | 78fc63fe29 | |
Fred Boniface | 4526cfa3e0 |
|
@ -1,35 +1,32 @@
|
|||
/* FONTS */
|
||||
@font-face {
|
||||
font-family: "firamono";
|
||||
src: url("/font/firamono/firamono-regular.woff2") format("woff2"), url("/font/firamono/firamono-regular.woff") format("woff"),
|
||||
url("/font/firamono/firamono-regular.ttf") format("truetype");
|
||||
src: url("/font/firamono/firamono-regular.woff2") format("woff2"), url("/font/firamono/firamono-regular.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "firamono";
|
||||
src: url("/font/firamono/firamono-500.woff2") format("woff2"), url("/font/firamono/firamono-500.woff") format("woff"), url("/font/firamono/firamono-500.ttf") format("truetype");
|
||||
src: url("/font/firamono/firamono-500.woff2") format("woff2"), url("/font/firamono/firamono-500.woff") format("woff");
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "urwgothic";
|
||||
src: url("/font/urwgothic/urwgothic.woff2") format("woff2"), url("/font/urwgothic/urwgothic.woff") format("woff"), url("/font/urwgothic/urwgothic.ttf") format("truetype");
|
||||
src: url("/font/urwgothic/urwgothic.woff2") format("woff2"), url("/font/urwgothic/urwgothic.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "urwgothic";
|
||||
src: url("/font/urwgothic/urwgothicDemi.woff2") format("woff2"), url("/font/urwgothic/urwgothicDemi.woff") format("woff"),
|
||||
url("/font/urwgothic/urwgothicDemi.ttf") format("truetype");
|
||||
src: url("/font/urwgothic/urwgothicDemi.woff2") format("woff2"), url("/font/urwgothic/urwgothicDemi.woff") format("woff");
|
||||
font-weight: 900;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "ubuntu";
|
||||
src: url("/font/ubuntumono/ubuntumono-regular.woff2") format("woff2"), url("/font/ubuntumono/ubuntumono-regular.woff") format("woff"),
|
||||
url("/font/ubuntumono/ubuntumono-regular.ttf") format("truetype");
|
||||
src: url("/font/ubuntumono/ubuntumono-regular.woff2") format("woff2"), url("/font/ubuntumono/ubuntumono-regular.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
|
|
@ -6,10 +6,18 @@ const cacheName = `ob-${version}`;
|
|||
|
||||
const assets = [...build, ...files, "/service-worker.js"];
|
||||
|
||||
const excludePatterns = [
|
||||
"/static/images/screnshots/",
|
||||
"/images/screenshots",
|
||||
];
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
async function addToCache() {
|
||||
const cache = await caches.open(cacheName);
|
||||
await cache.addAll(assets);
|
||||
const assetsToCache = assets.filter(asset => {
|
||||
return !excludePatterns.some(pattern => asset.startsWith(pattern));
|
||||
});
|
||||
await cache.addAll(assetsToCache);
|
||||
}
|
||||
|
||||
event.waitUntil(addToCache());
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,3 +1,4 @@
|
|||
|
||||
import adapter from "@sveltejs/adapter-static";
|
||||
import { vitePreprocess } from "@sveltejs/kit/vite";
|
||||
|
||||
|
|
Loading…
Reference in New Issue