Missing ionicons in Ionic 2 RC1
If your Ionicons are not showing up in your Ionic 2 app (after you've recently upgraded the ionic runtime, for example), it might be because they are no longer linked with your distribution. Here's how you can go ahead and fix that:
Pre-requisite: npm install ionicons
In your copy.config.js, ensure that you copy the ionicon fonts from your node modules:
...
{
src: 'node_modules/ionicons/dist/fonts/',
dest: '{{WWW}}/fonts/'
}
...
In your src/app/app.core.scss, make sure that you include ionicon's sass:
@import "../../node_modules/ionicons/dist/scss/ionicons";
With those two changes, you should be back in the game!
Comments