Only import the expand icon#109
Conversation
|
@ajbogh / @chiwoojo |
|
There are 4 failing tests with the following error: Log out faExpand: console.log result: Just noticed that you used It still didn't work with the namespace changed to |
|
@ajbogh I was confused by the same @FortAwesome thing, but it appears that that's fontawesome's parent branding. Weird, I thought I had the tests working, but it looks like that might have been before I was explicitly importing the svg asset. It looks like the issue is actually just |
|
Great work on this. I checked it out and it looks good. Thanks! |

Only import font-awesome
expandicon instead of the entirereact-iconslibrary.This optimization reduces the production build output by 374k, a 68% reduction in asset size.
How to test this:
yarnornpm installyarn exampleand verify everything looks normalyarn analyze-bundleto see prod build stats.Visualized improvements via
webpack-build-analyzer:Resolved #108