1
对于IE11兼容性,我读here,应该将<script src="node_modules/core-js/client/shim.min.js"></script>
添加到index.html。Angular-CLI:如何在<script> -Tag中引用node_modules中的.js?
但是,当加载index.html时,我总是得到这个文件的404。我尝试了很多不同的路径,例如"/scripts/shim.min.js"
并阅读this和this,但没有成功。
在角cli.json "scripts":
-array,我添加 "../node_modules/core-js/client/shim.min.js"
和芯 - js的被定义为的package.json依赖性使用
版本:角-CLI:1.0.0-β。 21,node:4.2.6
我在验证这些导入语句实际发生的情况时遇到问题。现在,获取客户端文件的方法是将core-js文件夹复制到src-Folder中。 – pma