mirror of
https://github.com/zadam/trilium.git
synced 2026-01-11 09:04:28 +01:00
chore(pdfjs): embed sandbox file
This commit is contained in:
parent
e4d0a4554a
commit
757fc7a7fe
@ -34,8 +34,9 @@ async function main() {
|
||||
build.writeJson("web/locale/locale.json", localeMappings);
|
||||
|
||||
// Copy pdfjs-dist files.
|
||||
build.copy("/node_modules/pdfjs-dist/build/pdf.mjs", "build/pdf.mjs");
|
||||
build.copy("/node_modules/pdfjs-dist/build/pdf.worker.mjs", "build/pdf.worker.mjs");
|
||||
for (const file of [ "pdf.mjs", "pdf.worker.mjs", "pdf.sandbox.mjs" ]) {
|
||||
build.copy(join("/node_modules/pdfjs-dist/build", file), join("build", file));
|
||||
}
|
||||
|
||||
if (watchMode) {
|
||||
watchForChanges();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user