Merge pull request #235 from sisao/dev

self serve pdf.worker.min.js
This commit is contained in:
Jonas Winkler 2021-01-01 21:13:59 +01:00 committed by GitHub
commit e0c87fc556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,11 @@
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest"
"src/manifest.webmanifest", {
"glob": "pdf.worker.min.js",
"input": "node_modules/pdfjs-dist/build/",
"output": "/assets/js/"
}
],
"styles": [
"src/styles.scss"

View File

@ -10,6 +10,7 @@ export class AppComponent {
constructor (appViewService: AppViewService) {
appViewService.updateDarkModeSettings()
(window as any).pdfWorkerSrc = '/assets/js/pdf.worker.min.js';
}