# Building Ionic Web App to Production

**URL:** <https://forum.ionicframework.com/t/building-ionic-web-app-to-production/112833>\
**Category:** ionic-v3\
**Created:** [November 21, 2017, 5:41am UTC](https://forum.ionicframework.com/t/building-ionic-web-app-to-production/112833 "2017-11-21T05:41:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jetav8r99](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jetav8r99](https://forum.ionicframework.com/u/jetav8r99)\
**Post date:** [November 21, 2017, 5:41am UTC](https://forum.ionicframework.com/t/building-ionic-web-app-to-production/112833/1 "2017-11-21T05:41:59Z")

</div>

I used to use this command to build my app for production:

ionic cordova build browser --prod

This no longer works with the new app scripts for building. If I do use that I get an error that says browser isn’t a supported variable

Tried to used the new app scripts build, but get a bunch of tslint errors which aren’t actually errors. Is there a way to either bypass the tslint errors when making a production build, or can anyone help me with this?

Thank you!

---

<div class="post-metadata">

**Author:** ![pwespi](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@pwespi](https://forum.ionicframework.com/u/pwespi)\
**Post date:** [November 21, 2017, 5:55am UTC](https://forum.ionicframework.com/t/building-ionic-web-app-to-production/112833/2 "2017-11-21T05:55:00Z")

</div>

Do you actually need the cordova browser platform? If not, you can use `ionic build --prod` and the output will be in the `www` folder.

---

<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:** [November 21, 2017, 9:15am UTC](https://forum.ionicframework.com/t/building-ionic-web-app-to-production/112833/3 "2017-11-21T09:15:23Z")

</div>

> [@jetav8r99](#):
>
> This no longer works with the new app scripts for building. If I do use that I get an error that says browser isn’t a supported variable

Please post the complete output (including the executed command).

What is your `ionic info` output?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 10:02pm UTC](https://forum.ionicframework.com/t/building-ionic-web-app-to-production/112833/4 "2021-07-19T22:02:42Z")

</div>

Closed on July 19, 2021, 10:02pm UTC


