fix(export/share): handling of fonts

This commit is contained in:
Elian Doran 2025-10-26 11:34:09 +02:00
parent f4468706ef
commit 055fcb7b2a
No known key found for this signature in database
3 changed files with 4 additions and 9 deletions

View File

@ -19,12 +19,6 @@ export default class ShareThemeExportProvider extends ZipExportProvider {
prepareMeta(metaFile: NoteMetaFile): void {
const assets = [
"boxicons.css",
"boxicons.eot",
"boxicons.woff2",
"boxicons.woff",
"boxicons.ttf",
"boxicons.svg",
"icon-color.svg"
];

View File

@ -71,6 +71,7 @@ export function renderNoteForExport(note: BNote, parentBranch: BBranch, basePath
rootNoteId: parentBranch.noteId,
cssToLoad: [
`${basePath}assets/styles.css`,
`${basePath}assets/scripts.css`,
],
jsToLoad: [
`${basePath}assets/scripts.js`

View File

@ -57,9 +57,9 @@ async function runBuild() {
loader: {
".png": "dataurl",
".gif": "dataurl",
".woff": "dataurl",
".woff2": "dataurl",
".ttf": "dataurl",
".woff": "file",
".woff2": "file",
".ttf": "file",
".eot": "empty",
".svg": "empty",
".html": "text",