PostCSS plugin to pull in a Font Awesome's icon unicode using content
.
Before
After
Options
Replacement
By default the plugin just searches for the icon you want and adds the Font Awesome font family as well as the unicode characters relative to that icon inside a content:
.
With the replacement option you can use it as a full class replacement.
Before
After
This means you won't have to add have <i class="fa fa-camera"></i>
you can just use <i class="foo"></i>
.
There is 1 downside to this method though, it creates a bit more CSS duplication as
Gets added everytime you use it instead of being on a single .fa
class.
Usage
See PostCSS docs for examples for your environment.