Hi guys, I’m new here. Ionic seems like a great piece of framework, thanks for that!
Anyway, my problem: Icons do work when I run the app in my web browser but once I open the app in the iOS emulator I just get an empty rectangle instead of the actual icons. This is the same problem for all icons in my app:
This was too obvious. Thanks to your suggestion I had the idea to actually check the CSS file generated by grunt. Turns out that the path to the icon font gets messed up during concatenation. So this is a grunt problem and should be fixed in generator-ionicjs. I’ll report the issue there.
In the meantime, if anybody is experiencing the same problem using the same stack:
After concatenation you have to change the different paths to the icon font inside www/styles/vendor.css from “/bower_components/ionic/release/fonts/ionicons.eot” to “…/bower_components/ionic/release/fonts/ionicons.eot”
Glad to see my generator making it onto these forums! Was planning on posting here once the project stabilized a bit but it looks like you guys beat me to it
At any rate this fonts bug was fixed in version0.0.8. Currently 0.0.14 is the latest release and it comes with a few new helpful features like prompts for installing some commonly used Cordova plugins along side your application and Karma unit tests with Istanbul code coverage reports.
The generated Gruntfile.js does some other helpful things (as @stizzle mentioned), like wrap all the Cordova CLI commands for convenience as well as support a browser based development workflow with a built in live-reload server via grunt serve.