使用没有node_module依赖关系的pdf.js web查看器

时间:2017-08-31 09:16:31

标签: javascript svn pdf.js

我使用gulp generic命令克隆并构建了pdf.js。我打算使用/web/viewer.html中的查看器,但脚本需要node_modules个依赖项。

有没有办法构建pdf.js以使用没有node_module依赖项的查看器?我在SVN环境中工作,我无法将node_modules文件夹添加到版本控制

1 个答案:

答案 0 :(得分:1)

请勿使用web / viewer.html进行制作。由于您已经运行gulp generic - 在build / generic / web / viewer.html中使用查看器,并且它在node_modules中没有依赖项。 ...或者您可以从http://mozilla.github.io/pdf.js/getting_started/#download

下载此部件