Minify + Other Gulp Tasks for Ionic Upload


#1

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?


#2

Found One Possible Way:

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.