- 我在使用ng build --prod命令打包后,
index.html
文件中的script
标签如下:<script type="text/javascript" src="polyfills.abdf53ca655716e505e0.bundle.js"></script>
。 - 由于我的服务端使用
http://localhost:8000/a
为开头,浏览器无法请求http://localhost:8000/polyfills.abdf53ca655716e505e0.bundle.js
文件。 - 我怎样使用打包命令,或着有其他方法为
script
标签的src
属性添加/a
前缀? -
index.html
中的一些样式文件和其他script
标签都有同样问题。
在head中增加base标签。