angular production build error - 404 for all the files

1.7k Views Asked by At

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

1

There are 1 best solutions below

0
On

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