我使用gulp generic
命令克隆并构建了pdf.js。我打算使用/web/viewer.html
中的查看器,但脚本需要node_modules
个依赖项。
有没有办法构建pdf.js以使用没有node_module
依赖项的查看器?我在SVN环境中工作,我无法将node_modules
文件夹添加到版本控制
答案 0 :(得分:1)
请勿使用web / viewer.html进行制作。由于您已经运行gulp generic
- 在build / generic / web / viewer.html中使用查看器,并且它在node_modules中没有依赖项。 ...或者您可以从http://mozilla.github.io/pdf.js/getting_started/#download