我试图将node_modules/foundation-sites
加载到我的Angular CLI应用程序中。该目录如下所示:
node_modules/foundation-sites/dist/css:
foundation.css foundation-float.min.css
foundation-prototype.css foundation-rtl.css
foundation-float.css foundation.min.css
foundation-prototype.min.css foundation-rtl.min.css
node_modules/foundation-sites/dist/js:
foundation.d.ts foundation.js foundation.min.js npm.js plugins
我试图在angular-cli.json
文件中使用globbing:
"scripts": [
{ "glob": "**/*", "input": "../node_modules/foundation-sites/dist/js", "output": "/js/" },
]
但这引发了一个:
Error: EISDIR: illegal operation on a directory, read at Error (native)
如何在scripts
数组中逐个输入JS文件的整个目录?