Ionic 4: How To Build And Deploy An Ionic App For Browser?

ionic 2:
run this:
ionic cordova build browser --prod --release

then move ‘platforms/browser/www’ to tomcat, then visit ‘…/www/index.htm’, this works fine on ionic2 but not work on ionic4.

the docs just show how to publishing with firebase, so anyone can help me deploy it? thank you so much.

1 Like

hello, we found the solution in, the file www / index.html change the
Switch to

and this will solve your life https://github.com/angular/angular-cli/issues/7325#issuecomment-321899673[https://github.com/angular/angular-cli/issues/7325#issuecomment-321899673](https://github.com/angular/angular-cli/issues/7325#issuecomment-321899673)