🌳 webpack tree shaking demo
This repository is simple webpack application with a few key dependencies and how tree shaking can impact the overall bundle size:
After cloning this repository, change directories to the example app you'd like to see. For example:
dist/index.htmlin a browser)
basic directory contains the basics of an application with all of these
dependencies and renders a simple component. This app does not tree shake
the excess Font Awesome icons.
import-only-used directory updates the basic example
to import only the icons used and add them to the Font Awesome library.
explicit-import directory updates the basic example
to explicitly import the icons that are used and doesn't create a Font Awesome
See the Font Awesome - Tree Shaking docs for more details around tree shaking Font Awesome.