mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 18:49:00 +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 {
|
prepareMeta(metaFile: NoteMetaFile): void {
|
||||||
|
|
||||||
const assets = [
|
const assets = [
|
||||||
"boxicons.css",
|
|
||||||
"boxicons.eot",
|
|
||||||
"boxicons.woff2",
|
|
||||||
"boxicons.woff",
|
|
||||||
"boxicons.ttf",
|
|
||||||
"boxicons.svg",
|
|
||||||
"icon-color.svg"
|
"icon-color.svg"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -71,6 +71,7 @@ export function renderNoteForExport(note: BNote, parentBranch: BBranch, basePath
|
|||||||
rootNoteId: parentBranch.noteId,
|
rootNoteId: parentBranch.noteId,
|
||||||
cssToLoad: [
|
cssToLoad: [
|
||||||
`${basePath}assets/styles.css`,
|
`${basePath}assets/styles.css`,
|
||||||
|
`${basePath}assets/scripts.css`,
|
||||||
],
|
],
|
||||||
jsToLoad: [
|
jsToLoad: [
|
||||||
`${basePath}assets/scripts.js`
|
`${basePath}assets/scripts.js`
|
||||||
|
|||||||
@ -57,9 +57,9 @@ async function runBuild() {
|
|||||||
loader: {
|
loader: {
|
||||||
".png": "dataurl",
|
".png": "dataurl",
|
||||||
".gif": "dataurl",
|
".gif": "dataurl",
|
||||||
".woff": "dataurl",
|
".woff": "file",
|
||||||
".woff2": "dataurl",
|
".woff2": "file",
|
||||||
".ttf": "dataurl",
|
".ttf": "file",
|
||||||
".eot": "empty",
|
".eot": "empty",
|
||||||
".svg": "empty",
|
".svg": "empty",
|
||||||
".html": "text",
|
".html": "text",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user