0

我已经从角度构建并部署在tomcat上。但是我收到了这个错误

GET http://localhost:8080/vendor.6973535b47bac575f754.js net::ERR_ABORTED
index.html:76 GET http://localhost:8080/vendor.6973535b47bac575f754.css net::ERR_ABORTED
index.html:92 GET http://localhost:8080/app.6973535b47bac575f754.js net::ERR_ABORTED
index.html:92 GET http://localhost:8080/polyfills.6973535b47bac575f754.js net::ERR_ABORTED
index.html:92 GET http://localhost:8080/vendor.6973535b47bac575f754.js net::ERR_ABORTED
index.html:92 GET http://localhost:8080/app.6973535b47bac575f754.js 404 ()

在此处输入图像描述

我已经通过更改 index.html 进行了修复。我不想每次都改变。有什么解决办法吗?

角度:4.2.5 节点:8.8.0 操作系统:Linux Ubuntu 16.04 webpack:2.2.1

4

1 回答 1

0

我们需要在 webpack 配置中删除公共路径或添加正确的路径。

于 2017-11-18T10:15:47.837 回答