Skip to content

Commit 055fcb7

Browse files
committed
fix(export/share): handling of fonts
1 parent f446870 commit 055fcb7

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

apps/server/src/services/export/zip/share_theme.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ export default class ShareThemeExportProvider extends ZipExportProvider {
1919
prepareMeta(metaFile: NoteMetaFile): void {
2020

2121
const assets = [
22-
"boxicons.css",
23-
"boxicons.eot",
24-
"boxicons.woff2",
25-
"boxicons.woff",
26-
"boxicons.ttf",
27-
"boxicons.svg",
2822
"icon-color.svg"
2923
];
3024

apps/server/src/share/content_renderer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export function renderNoteForExport(note: BNote, parentBranch: BBranch, basePath
7171
rootNoteId: parentBranch.noteId,
7272
cssToLoad: [
7373
`${basePath}assets/styles.css`,
74+
`${basePath}assets/scripts.css`,
7475
],
7576
jsToLoad: [
7677
`${basePath}assets/scripts.js`

packages/share-theme/scripts/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ async function runBuild() {
5757
loader: {
5858
".png": "dataurl",
5959
".gif": "dataurl",
60-
".woff": "dataurl",
61-
".woff2": "dataurl",
62-
".ttf": "dataurl",
60+
".woff": "file",
61+
".woff2": "file",
62+
".ttf": "file",
6363
".eot": "empty",
6464
".svg": "empty",
6565
".html": "text",

0 commit comments

Comments
 (0)