use pdf.js web viewer without node_module dependencies

1.8k Views Asked by At

I cloned and built pdf.js using gulp generic command. I intend to use the viewer located in /web/viewer.html , but the scripts requires node_modules dependencies.

Is there a way to build pdf.js to use this viewer without the node_module dependencies ? i work on an SVN environment and i can't add the node_modules folder to the versioning

1

There are 1 best solutions below

2
On BEST ANSWER

Don't use web/viewer.html for production. Since you already run gulp generic -- use viewer in build/generic/web/viewer.html and it does not have dependencies in node_modules. ... or you can just download this part from http://mozilla.github.io/pdf.js/getting_started/#download