legalthings / angular-pdfjs-viewer

PDF.js viewer directive for AngularJS
MIT License
137 stars 113 forks source link

vendor.worker.js not found #48

Closed agam16 closed 7 years ago

agam16 commented 7 years ago

I am using gulp to create the build for my project. The code is working perfectly via gulp-serve but when i try to use gulp build, it tries to find the worker file like vendor.worker.js which is not found.

What could be the issue?

jasny commented 7 years ago

The plugin will try to determine the paths automatically. But if you build / minify it often can't.

You need to set the paths explicitly. See Advanced configuration in the README