Getting Ionic App ready for Production

I am currently using this tutorial https://www.airpair.com/ionic-framework/posts/production-ready-apps-with-ionic-framework to get my ionic app ready for production. To minify, concatenate and reduce the size of my app. But I am having some errors.
The issue is well explained in this stackoverflow question http://stackoverflow.com/questions/34591391/ionic-concatenate-files-gulp-useref-doesnt-concatenate-css-and-index-files

Basiclly gulp-useref doesnt seem to be working properly. It doesnt create the build files and doesnt create a new index.html file

I followed the same tutorial. Did you find a solution? I dist_js and dist_css to build but when I do ionic run android the Chrome inspector shows only [object Object] in my styles.css file and no styles get applied. When I remove file 060_uglify.js from hooks/after_prepare my styles get applied but there is no minification/uglification.