Dharan Ganesan
Dharan Ganesan

Reputation: 453

angular production build error - 404 for all the files

i have taken build from angular and i deployed on tomcat. but iam getting this error

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 ()

enter image description here

i have fixed by changing index.html . i don't want to change every time.is there any solution for this?

angular: 4.2.5 node: 8.8.0 Os: Linux Ubuntu 16.04 webpack:2.2.1

Upvotes: 0

Views: 1831

Answers (1)

Dharan Ganesan
Dharan Ganesan

Reputation: 453

We need to remove public path or add correct path in webpack configuration.

Upvotes: 0

Related Questions