You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works in dev mode, but for a production deployment (npm run build) one has to copy node_modules/pdfjs-dist/build/pdf.worker.min.js to worker/pdf.worker.min.js.
jzillmann
changed the title
V2: Include pdfJs web-worker in a way that works with bundling
V2: Include PDF.js web-worker in a way that works with bundling
Mar 5, 2021
Right now following pieces are in place:
snowpack.config.js
ui/src/store.js
This works in dev mode, but for a production deployment (
npm run build
) one has to copynode_modules/pdfjs-dist/build/pdf.worker.min.js
toworker/pdf.worker.min.js
.There has to be a better way!
There is related documentation and conversation:
But i failed so far with any approach...
The text was updated successfully, but these errors were encountered: