Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230760

Successful FontAwesome production build?

$
0
0

I do this too, but with a different syntax that I think is more amenable to tree-shaking (although again this may no longer be a concern: I was a very early adopter of angular-fontawesome, since it was in alpha):

class IconService {
  truck = faTruck;
  check = faMoneyCheckAlt;
}
class Page {
  constructor(public icons: IconService) {}
}
<fa-icon [icon]="icons.truck"></fa-icon>

Viewing all articles
Browse latest Browse all 230760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>