Compare commits
No commits in common. "78fc63fe29b9646b5e6a06f89c57840f52991144" and "b6a8bd0461b0050317d834598d1520b596383dd4" have entirely different histories.
78fc63fe29
...
b6a8bd0461
|
@ -1,32 +1,35 @@
|
|||
/* FONTS */
|
||||
@font-face {
|
||||
font-family: "firamono";
|
||||
src: url("/font/firamono/firamono-regular.woff2") format("woff2"), url("/font/firamono/firamono-regular.woff") format("woff");
|
||||
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");
|
||||
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");
|
||||
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");
|
||||
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");
|
||||
src: url("/font/urwgothic/urwgothic.woff2") format("woff2"), url("/font/urwgothic/urwgothic.woff") format("woff"), url("/font/urwgothic/urwgothic.ttf") format("truetype");
|
||||
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");
|
||||
src: url("/font/urwgothic/urwgothicDemi.woff2") format("woff2"), url("/font/urwgothic/urwgothicDemi.woff") format("woff"),
|
||||
url("/font/urwgothic/urwgothicDemi.ttf") format("truetype");
|
||||
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");
|
||||
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");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
|
|
@ -6,18 +6,10 @@ 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);
|
||||
const assetsToCache = assets.filter(asset => {
|
||||
return !excludePatterns.some(pattern => asset.startsWith(pattern));
|
||||
});
|
||||
await cache.addAll(assetsToCache);
|
||||
await cache.addAll(assets);
|
||||
}
|
||||
|
||||
event.waitUntil(addToCache());
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,3 @@
|
|||
|
||||
import adapter from "@sveltejs/adapter-static";
|
||||
import { vitePreprocess } from "@sveltejs/kit/vite";
|
||||
|
||||
|
|
Loading…
Reference in New Issue