我想用 https://github.com/MrRio/jsPDF在我的 ember 项目中。
我想将 jsPDF 作为依赖项导入,因此我以这种方式开始:bower install git@github.com:MrRio/jsPDF.git --save
不幸的是,我无法从插件目录安装文件,因为 "plugins/*"
目录在 bower.json 文件中被忽略。
我曾尝试以这种方式覆盖它,但没有成功。
"overrides": {
"jspdf": {
"ignore": [
"**/.*",
"libs",
"CNAME",
"jspdf.js",
"examples/jspdf.PLUGINTEMPLATE.js",
"todo.txt",
"wscript.py",
"build.sh",
"test",
"tools"
]
}
}
请你帮助我好吗?
最佳答案
我刚刚向 bower 添加了一个 jsPDF 插件包。
您可以通过添加所有插件
bower install jsPDF-plugins --save
关于bower - 如何覆盖依赖的 bower.json 文件的 "ignore"部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31659729/