# Minify + Other Gulp Tasks for Ionic Upload

**URL:** <https://forum.ionicframework.com/t/minify-other-gulp-tasks-for-ionic-upload/34660>\
**Category:** ionic-v1\
**Created:** [October 15, 2015, 2:07am UTC](https://forum.ionicframework.com/t/minify-other-gulp-tasks-for-ionic-upload/34660 "2015-10-15T02:07:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saharshtibrewal](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/saharshtibrewal/32/87784_2.png) [@saharshtibrewal](https://forum.ionicframework.com/u/saharshtibrewal)\
**Post date:** [October 15, 2015, 2:07am UTC](https://forum.ionicframework.com/t/minify-other-gulp-tasks-for-ionic-upload/34660/1 "2015-10-15T02:07:10Z")

</div>

How do we minify and concatenate the assets for ionic upload?

I have a few bower libraries in my app which include both the minified js and the non-minified versions. I would like to include only the minified versions in the “ionic upload”. Currently, while building an apk, I take up only the minified versions through hooks.

How do I ensure that “ionic upload” takes the minifed version?

Also, there are several gulp tasks that concatenate my template files, minify js files and so on. How can I ensure that this stuff happens for “ionic upload” as well?

---

<div class="post-metadata">

**Author:** ![saharshtibrewal](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/saharshtibrewal/32/87784_2.png) [@saharshtibrewal](https://forum.ionicframework.com/u/saharshtibrewal)\
**Post date:** [October 15, 2015, 2:20am UTC](https://forum.ionicframework.com/t/minify-other-gulp-tasks-for-ionic-upload/34660/2 "2015-10-15T02:20:24Z")

</div>

Found One Possible Way:

> **[My restructure of the Ionic apps](http://forum.ionicframework.com/t/my-restructure-of-the-ionic-apps/11184)**
>
> When we started to work with ionic, we quickly realized that the ./www folder quickly started to contain files that had no business being in the packaged app. We also wanted to add some additional features to the build process that are not present...

[http://docs.ionic.io/docs/io-uploading](http://docs.ionic.io/docs/io-uploading) mentions that only www folder is uploaded.

So, indeed the above will work and reduce the file size.

Looks like I answered my own query.
