{"id":15651384,"url":"https://github.com/drwpow/webpack-optimize-sample-project","last_synced_at":"2025-04-30T18:45:35.855Z","repository":{"id":66331353,"uuid":"96738024","full_name":"drwpow/webpack-optimize-sample-project","owner":"drwpow","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-20T04:26:59.000Z","size":1402,"stargazers_count":34,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T18:51:11.412Z","etag":null,"topics":[],"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/drwpow.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":"2017-07-10T05:10:57.000Z","updated_at":"2023-05-21T18:02:16.000Z","dependencies_parsed_at":"2023-02-20T19:45:50.028Z","dependency_job_id":null,"html_url":"https://github.com/drwpow/webpack-optimize-sample-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drwpow%2Fwebpack-optimize-sample-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drwpow%2Fwebpack-optimize-sample-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drwpow%2Fwebpack-optimize-sample-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drwpow%2Fwebpack-optimize-sample-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drwpow","download_url":"https://codeload.github.com/drwpow/webpack-optimize-sample-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251765196,"owners_count":21640149,"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":[],"created_at":"2024-10-03T12:38:11.342Z","updated_at":"2025-04-30T18:45:35.817Z","avatar_url":"https://github.com/drwpow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Optimizing webpack 3 performance for the front-end\n\nSample code for a blog post on optimizing webpack performance.\n\nThe following techniques yield the following size reductions. Some techniques, like [deterministic hashes](https://webpack.js.org/guides/caching/#deterministic-hashes), don’t affect the bundle size, but contribute in other harder-to-measure ways such as caching.\n\n| Technique                                                   | Entry size   |  gzipped | Savings from previous step |\n|-------------------------------------------------------------|-------------:|---------:|---------------------------:|\n| **[Base App](./0-base-app)**                                |     `2.5 MB` | `525 kB` |                          — |\n| **[Scope Hoisting](./1-scope-hoisting)**                    |     `2.5 MB` | `525 kB` |                          — |\n| **Uglification** of base app via `webpack -p`               |       `1 MB` | `266 kB` |                   + 50–60% |\n| **[Dynamic import](./3-dynamic-import)**                    |     `229 kB` |  `70 kB` |                   + 70–75% |\n| **[Deterministic Hashes](./4-deterministic-hashes)**        |            — |        — |                          — |\n| **[Commons Chunk Plugin](./5-commons-chunk)** †             |     `230 kB` |  `71 kB` |                       – 1% |\n| **[webpack Offline Plugin](./6-offline-plugin)**            |            — |        — |                          — |\n| **[webpack Bundle Analyzer](./7-webpack-bundle-analyzer)**‡ |            — |        — |                            |\n\n_† The Commons Chunk Plugin technique split one entry file into 2, and the\ncombined size of both is listed._\n\n_‡ The Bundle Analyzer technique saved `161 kB` on a particular request. This\nis significant savings even if it doesn’t apply to 100% of users._\n\n---\n\nFor the full explanation, see the blog post.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrwpow%2Fwebpack-optimize-sample-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrwpow%2Fwebpack-optimize-sample-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrwpow%2Fwebpack-optimize-sample-project/lists"}