How to build and deploy an Ionic App for Browser.

/ August 30, 2017/ Ionic

This will work for Ionic 2.x and Ionic 3.x and will make a folder structure ready for deploy.

You need to run (depending on your Ionic Cli version)

ionic cordova build browser --prod


ionic build browser --prod

Then you need to use what is inside platforms/browser/www.

Be aware that depending of what your App does, you could need to use a HTTP server to be able to see it locally.

There is also a direct way using npm

npm run ionic:build --prod


Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>