You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the app in the iOS emulator results in all icons not being shown. This is because the path to all instances of the icon font inside vendor.css is wrong.
It is
"/bower_components/ionic/release/fonts/ionicons.eot"
"/bower_components/ionic/release/fonts/ionicons.ttf"
etc.
But it should be
"../bower_components/ionic/release/fonts/ionicons.eot"
"../bower_components/ionic/release/fonts/ionicons.ttf"
The text was updated successfully, but these errors were encountered:
So I re-evaluated the packaging of assets for production. Since we are concatenating, obfuscating, and minifying all of our assets, there is no real reason to copy the bower_components into the www directory for production.
Since its fairly common including an app/fonts/ directory, I've updated the Gruntfile with a copy:fonts task that copies the Ionic fonts from bower_components into that location. This way, apps can bundle any custom fonts as well and they will all get copied over to www/fonts as part of the production pipeline.
The last bit was updating cssmin to not rebase relative urls, so that the reference inside of ionic.css would work properly.
Nice Generator.
Using v 0.0.6 here.
Running the app in the iOS emulator results in all icons not being shown. This is because the path to all instances of the icon font inside vendor.css is wrong.
It is
"/bower_components/ionic/release/fonts/ionicons.eot"
"/bower_components/ionic/release/fonts/ionicons.ttf"
etc.
But it should be
"../bower_components/ionic/release/fonts/ionicons.eot"
"../bower_components/ionic/release/fonts/ionicons.ttf"
The text was updated successfully, but these errors were encountered: