I really really suggest you go with yeoman and their ionic generator if you’re looking for maximal compression. Their gruntfile is perfect for a ionic project, and you end up with 3 files : a main.css, an app.js and all your bower dependencies (including ionic) compressed in one file. It reduced the size of my project by 2/3.
@WidawskiJ Since I already have a full ionic project using Gulp, it means that I only should download grunt, copy their gruntfile and configure ( alter it) to match my folders (since I Hate the by-types organisation. I prefer by-feature) .
One question: did you run any npm install (not written on the doc) before using Yeoman grunt command?
I just created a sample directory to run the full yo ionic app-name.
I then run inside the project: sudo npm install and when I run grunt, I get:
However, is it right that we can bypass the template cache since the ionic generator already minifies HTML files, and especially because there is no network latency on a mobile to retrieve those HTML?
There will be minimal latency as the files are already on the mobile, but still, if you have a lot of large templates it may be worth adding into the template cache and you may get some improvement.
I’m of the thought that if I’m already optimising, I might as well go the whole way!