3

I have created an angular (angular 7) application and then added ng add @angular/pwa angular PWA library to it. Now after building it using ng build --prod and then serving the application to localhost:8080 via node's http-server, my application is running fine in offline mode in localhost.

But when i build the same application using ng build --prod --base-href /myProject/ to deploy on IIS, application is working fine but when switch to offline mode using chrome's developer tool, i am getting error HTTP Error 504.

Please suggest what is causing this strange behavior and how to fix it.

vndpal
  • 697
  • 6
  • 20

1 Answers1

0

you can give it a try by omitting "--base-href /myProject/" while building

er-Chaan
  • 1
  • 1