Angular CLI配置脚本以加载整个外部javascript目录

时间:2018-05-14 19:53:10

标签: angular angular-cli zurb-foundation-6

我试图将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文件的整个目录?

0 个答案:

没有答案