Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
自动将相对Url添加到.angular-cli.json_Angular_Typescript_Npm - Fatal编程技术网

自动将相对Url添加到.angular-cli.json

自动将相对Url添加到.angular-cli.json,angular,typescript,npm,Angular,Typescript,Npm,如何使Angular Cli Angular-4在从npm安装添加外部库时自动将URL附加到样式或脚本中-保存到.Angular-Cli.json 到目前为止,我们需要手动遍历node_modules文件夹,查找文件的地址,并在.angular-cli.json中使用相同的地址 附近有工作吗 多谢各位 问候 Shohil Sethia使用-base href https://构建项目。 与ng build-prod-base ref http类似:// 也可考虑使用@角/cli@1.4.4如果最

如何使Angular Cli Angular-4在从npm安装添加外部库时自动将URL附加到样式或脚本中-保存到.Angular-Cli.json

到目前为止,我们需要手动遍历node_modules文件夹,查找文件的地址,并在.angular-cli.json中使用相同的地址

附近有工作吗

多谢各位

问候


Shohil Sethia

使用-base href https://构建项目。 与ng build-prod-base ref http类似://


也可考虑使用@角/cli@1.4.4如果最新版本有效,则为最新版本。

您不能。并非所有库都相同,因此导入也不相同。请提供一个代码示例@fox jazz。