mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 18:18:55 +01:00
fix(export/share): handling of fonts
This commit is contained in:
parent
f4468706ef
commit
055fcb7b2a
@ -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"
|
||||
];
|
||||
|
||||
|
||||
@ -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`
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user