This is just a quick demo of the tree-shaking that Just Works for @fortawesome/react-fontawesome in Font Awesome 5.1.
yarn
ornpm install
yarn build
ornpm run build
yarn start
ornpm run start
and point your browser at http://localhost:3000 to see the coffee icon. It's there.- Search the resulting
buid/static/js/app.*.js
bundle file for icon unicode points to see what's there and what's not.
You should see that code f0f4
is there, since that the code for faCoffee
. But you won't see f007
, the code
for faUser
.
This project was bootstrapped with Create React App.