{"id":15391510,"url":"https://github.com/skovy/webpack-tree-shaking-demo","last_synced_at":"2026-05-06T07:33:27.231Z","repository":{"id":91751350,"uuid":"200528868","full_name":"skovy/webpack-tree-shaking-demo","owner":"skovy","description":"Example of tree shaking Font Awesome in a simple webpack app","archived":false,"fork":false,"pushed_at":"2019-08-04T20:33:56.000Z","size":1138,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T01:26:39.963Z","etag":null,"topics":["font-awesome","tree-shaking","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skovy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-04T18:39:34.000Z","updated_at":"2023-02-22T06:27:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"afe59834-2429-447b-9f7a-4f6784e941af","html_url":"https://github.com/skovy/webpack-tree-shaking-demo","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"e775e9da2ddc0c2d2a281c61e642598b9de8ee19"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skovy%2Fwebpack-tree-shaking-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skovy%2Fwebpack-tree-shaking-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skovy%2Fwebpack-tree-shaking-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skovy%2Fwebpack-tree-shaking-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skovy","download_url":"https://codeload.github.com/skovy/webpack-tree-shaking-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245938640,"owners_count":20697071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["font-awesome","tree-shaking","webpack"],"created_at":"2024-10-01T15:11:32.404Z","updated_at":"2026-05-06T07:33:27.181Z","avatar_url":"https://github.com/skovy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌳 webpack tree shaking demo\n\nThis repository is simple webpack application with a few key dependencies and\nhow tree shaking can impact the overall bundle size:\n\n- `react` \u0026 `react-dom`\n- `lodash`\n- `@fortawesome/fontawesome-svg-core`\n- `@fortawesome/free-solid-svg-icons`\n- `@fortawesome/react-fontawesome`\n\n## Setup\n\nAfter cloning this repository, change directories to the example app you'd\nlike to see. For example:\n\n- `cd basic`\n- `yarn install`\n- `yarn build`\n- _(open `dist/index.html` in a browser)_\n\n### `basic`\n\nThe [`basic`](/basic) directory contains the basics of an application with all of these\ndependencies and renders a simple component. This app **does not** tree shake\nthe excess Font Awesome icons.\n\n### `import-only-used`\n\nThe [`import-only-used`](/import-only-used) directory updates the basic example\nto import only the icons used and add them to the Font Awesome library.\n\n### `explicit-import`\n\nThe [`explicit-import`](/explicit-import) directory updates the basic example\nto explicitly import the icons that are used and doesn't create a Font Awesome\nlibrary.\n\n---\n\nSee the [Font Awesome - Tree Shaking](https://fontawesome.com/how-to-use/with-the-api/other/tree-shaking)\ndocs for more details around tree shaking Font Awesome.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskovy%2Fwebpack-tree-shaking-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskovy%2Fwebpack-tree-shaking-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskovy%2Fwebpack-tree-shaking-demo/lists"}