# Ionic app - Production

**URL:** <https://forum.ionicframework.com/t/ionic-app-production/35794>\
**Category:** ionic-v1\
**Created:** [October 28, 2015, 5:06pm UTC](https://forum.ionicframework.com/t/ionic-app-production/35794 "2015-10-28T17:06:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbabaioff](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dbabaioff](https://forum.ionicframework.com/u/dbabaioff)\
**Post date:** [October 28, 2015, 5:06pm UTC](https://forum.ionicframework.com/t/ionic-app-production/35794/1 "2015-10-28T17:06:14Z")

</div>

I’m trying to understand how to prepare a ionic app for production.  
How to remove unused js files - like the unminified ionic file/ unminified angular files ?  
How to combine/ compress css/js into a special folder (let’s say dist folder) and generate a new index.html pointing to the combined file (let’s say dist/app.js) - and change the cordova to use this new index.html file  
Any ideas?

---

<div class="post-metadata">

**Author:** ![gmarziou](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gmarziou/32/13327_2.png) [@gmarziou](https://forum.ionicframework.com/u/gmarziou)\
**Post date:** [October 28, 2015, 10:23pm UTC](https://forum.ionicframework.com/t/ionic-app-production/35794/2 "2015-10-28T22:23:03Z")

</div>

Have a look at the gulp file generated by [generator-m-ionic](https://github.com/mwaylabs/generator-m-ionic)

---

<div class="post-metadata">

**Author:** ![tomkuipers](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tomkuipers/32/12918_2.png) [@tomkuipers](https://forum.ionicframework.com/u/tomkuipers)\
**Post date:** [October 30, 2015, 6:05am UTC](https://forum.ionicframework.com/t/ionic-app-production/35794/3 "2015-10-30T06:05:39Z")

</div>

To remove unwanted files (unminified etc) installed by bower I use ‘preen’. You can run it as a gulp task, see for explanation: [How to manage bower overweight?](http://forum.ionicframework.com/t/how-to-manage-bower-overweight/17997/10?u=tomkuipers)
