Getting ready

Let's build a custom web font to replace our full Font-Awesome library usage. We will continue to leverage all the advanced features of Font-Awesome, including our angular2-fontawesome module's custom directives, but without any additional icons that we don't need being loaded to our frontend application.

To do this, we will need to install a few modules to our Angular application's package.json file:

npm install webfonts-loader 
font-awesome-svg-png --save-dev
  • webfonts-loader: A WebPack loader for loading font files that allows generation of custom fonts
  • font-awesome-svg-png: A collection of SVG and PNG files for each of the icons within font-awesome
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.192.79