Ionic – Deploy to Webhost

Table of Contents


					cd YourProjectFolder
ng add @angular/pwa
ionic build --prod

Change in www/index.html

					 <base href="/" />      // change this line to your path in the server e.g. "/myfolder/"

Upload your FILES and enjoy your NEW Ionic Site

If ng doesn't work

					ng --version

npm install -g @angular/cli

Go back to top

Leave a Comment