# Documentation for ionic build browser

**URL:** <https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545>\
**Category:** ionic-v3\
**Created:** [January 26, 2017, 8:57pm UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545 "2017-01-26T20:57:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlados](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/vlados/32/86343_2.png) [@vlados](https://forum.ionicframework.com/u/vlados)\
**Post date:** [January 26, 2017, 8:57pm UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/1 "2017-01-26T20:57:51Z")

</div>

I was not able to find official documentation.  
I understand that is the same as [https://github.com/apache/cordova-browser](https://github.com/apache/cordova-browser) but is it supporting Ionic2? I am seeing some problems with key bindings.

In other words - can we use Ionic 2 app in browser, served from web server?

---

<div class="post-metadata">

**Author:** ![mburger81](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mburger81](https://forum.ionicframework.com/u/mburger81)\
**Post date:** [March 2, 2017, 1:42pm UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/2 "2017-03-02T13:42:24Z")

</div>

Yes, we need the same information. There is not so many docs on how we build a BROWSER APP,  
i think we have to run  
`ionic build browser --prod`  
But after that? what we have to do?  
Have we to do this only if we want to build the app with cordova plugins or what is the right way?

Tueh build created by build browser is probably under  
\platforms\browser\www … but what if we wan’t to build the app without cordova plugins and without PWA support but minified and others to keep the app as small as possibile and as fast as possible

@vlados did you found some solution for it?

@mhartington can you help us or write some documentation or blog about, how to deplay an browser app to web server?

---

<div class="post-metadata">

**Author:** ![asterixzzz](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@asterixzzz](https://forum.ionicframework.com/u/asterixzzz)\
**Post date:** [August 21, 2017, 3:51am UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/3 "2017-08-21T03:51:08Z")

</div>

> [@mburger81](#):
>
> ionic build browser --prod

I get:

$ ionic build browser --prod  
The build command has been renamed. To find out more, run:

ionic cordova build --help

But when I run help, there is no commands to build for browser anymore. So maybe the Ionic team has dropped support for building for browsers in production?

---

<div class="post-metadata">

**Author:** ![asterixzzz](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@asterixzzz](https://forum.ionicframework.com/u/asterixzzz)\
**Post date:** [August 21, 2017, 7:33am UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/4 "2017-08-21T07:33:06Z")

</div>

I tried with ionic cordova build browser --prod --release and it worked 🙂

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [August 21, 2017, 9:56am UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/5 "2017-08-21T09:56:56Z")

</div>

In the time between the original posts and now the old `ionic build` command that uses Cordova in the background was moved to `ionic cordova build`. There is a new `ionic build` command not, that does different things (a PWA build without Cordova).

---

<div class="post-metadata">

**Author:** ![mburger81](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mburger81](https://forum.ionicframework.com/u/mburger81)\
**Post date:** [October 5, 2017, 3:49pm UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/6 "2017-10-05T15:49:08Z")

</div>

For what I now, you don’t should use `ionic cordova build browser` but you should do a simple  
`npm run ionic:build --prod`

---

<div class="post-metadata">

**Author:** ![asterixzzz](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@asterixzzz](https://forum.ionicframework.com/u/asterixzzz)\
**Post date:** [October 7, 2017, 12:49am UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/7 "2017-10-07T00:49:31Z")

</div>

> [@asterixzzz](#):
>
> ionic cordova build browser --prod --release

Cordova web plugins don’t seem to be included unless you do ionic cordova build browser --prod --release

---

<div class="post-metadata">

**Author:** ![rodneyjoyce](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rodneyjoyce](https://forum.ionicframework.com/u/rodneyjoyce)\
**Post date:** [October 14, 2017, 2:38pm UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/8 "2017-10-14T14:38:58Z")

</div>

I decided not to use the cordova browser platform because it does not seem to be officially supported.

So I use the WWW folder output built in prod mode for our PWA - [https://m.quemesa.com](https://m.quemesa.com)

For each Ionic Native plugin that we use (and we use a lot!) we wrote equivalent web versions…

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [October 14, 2017, 3:16pm UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/9 "2017-10-14T15:16:57Z")

</div>

@rodneyjoyce Did you think about putting that stuff on Github? I think the Ionic community might be _very_ interested in using that as a starting point for improvements…

---

<div class="post-metadata">

**Author:** ![rodneyjoyce](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rodneyjoyce](https://forum.ionicframework.com/u/rodneyjoyce)\
**Post date:** [October 15, 2017, 3:55pm UTC](https://forum.ionicframework.com/t/documentation-for-ionic-build-browser/77545/10 "2017-10-15T15:55:57Z")

</div>

The source code is owned by QueMesa startup, so I cannot share it, however I would happy to answer any questions if I am able. To be honest, Ionic does of the heavy lifting!
