{"id":17137798,"url":"https://github.com/chenxsan/webpack-hooks-list","last_synced_at":"2026-01-18T17:33:47.204Z","repository":{"id":42805265,"uuid":"270678566","full_name":"chenxsan/webpack-hooks-list","owner":"chenxsan","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-07T18:56:04.000Z","size":445,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T12:47:27.098Z","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/chenxsan.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}},"created_at":"2020-06-08T13:26:18.000Z","updated_at":"2023-03-04T03:29:40.000Z","dependencies_parsed_at":"2023-02-07T21:45:19.448Z","dependency_job_id":null,"html_url":"https://github.com/chenxsan/webpack-hooks-list","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/chenxsan%2Fwebpack-hooks-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenxsan%2Fwebpack-hooks-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenxsan%2Fwebpack-hooks-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenxsan%2Fwebpack-hooks-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenxsan","download_url":"https://codeload.github.com/chenxsan/webpack-hooks-list/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427012,"owners_count":20937214,"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-14T20:07:59.085Z","updated_at":"2026-01-18T17:33:47.167Z","avatar_url":"https://github.com/chenxsan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The execute order of webpack hooks\n\nThere're so many hooks in webpack, and you might be wondering in exactly which order they run.\n\nHere's the order list running `yarn webpack` to compile this project:\n\n```\n┌─────────┬───────────────────────────────────────────────────────────────────────────┬───────────────┐\n│ (index) │                                     0                                     │       1       │\n├─────────┼───────────────────────────────────────────────────────────────────────────┼───────────────┤\n│    0    │ '                     compiler.hooks.environment                        ' │ 1598072324241 │\n│    1    │ '                     compiler.hooks.afterEnvironment                   ' │ 1598072324241 │\n│    2    │ '                     compiler.hooks.entryOption                        ' │ 1598072324246 │\n│    3    │ '                     compiler.hooks.afterPlugins                       ' │ 1598072324288 │\n│    4    │ '                     compiler.hooks.afterResolvers                     ' │ 1598072324288 │\n│    5    │ '                     compiler.hooks.initialize                         ' │ 1598072324288 │\n│    6    │ '                     compiler.hooks.beforeRun                          ' │ 1598072324289 │\n│    7    │ '                     compiler.hooks.run                                ' │ 1598072324289 │\n│    8    │ '                     compiler.hooks.normalModuleFactory                ' │ 1598072324290 │\n│    9    │ '                     compiler.hooks.contextModuleFactory               ' │ 1598072324291 │\n│   10    │ '                     compiler.hooks.beforeCompile                      ' │ 1598072324291 │\n│   11    │ '                     compiler.hooks.compile                            ' │ 1598072324291 │\n│   12    │ '                     compiler.hooks.thisCompilation                    ' │ 1598072324293 │\n│   13    │ '                     compiler.hooks.compilation                        ' │ 1598072324294 │\n│   14    │ '                     compiler.hooks.make                               ' │ 1598072324301 │\n│   15    │ '                  compilation.hooks.addEntry                           ' │ 1598072324302 │\n│   16    │ '                  compilation.hooks.buildModule                        ' │ 1598072324322 │\n│   17    │ '                  compilation.hooks.normalModuleLoader                 ' │ 1598072324323 │\n│   18    │ '                  compilation.hooks.succeedModule                      ' │ 1598072324328 │\n│   19    │ '                  compilation.hooks.succeedEntry                       ' │ 1598072324329 │\n│   20    │ '                  compilation.hooks.log                                ' │ 1598072324329 │\n│   21    │ '                     compiler.hooks.finishMake                         ' │ 1598072324329 │\n│   22    │ '                  compilation.hooks.log                                ' │ 1598072324329 │\n│   23    │ '                  compilation.hooks.finishModules                      ' │ 1598072324329 │\n│   24    │ '                  compilation.hooks.log                                ' │ 1598072324330 │\n│   25    │ '                  compilation.hooks.log                                ' │ 1598072324330 │\n│   26    │ '                  compilation.hooks.log                                ' │ 1598072324330 │\n│   27    │ '                  compilation.hooks.log                                ' │ 1598072324330 │\n│   28    │ '                  compilation.hooks.log                                ' │ 1598072324331 │\n│   29    │ '                  compilation.hooks.log                                ' │ 1598072324331 │\n│   30    │ '                  compilation.hooks.log                                ' │ 1598072324331 │\n│   31    │ '                  compilation.hooks.log                                ' │ 1598072324331 │\n│   32    │ '                  compilation.hooks.seal                               ' │ 1598072324331 │\n│   33    │ '                  compilation.hooks.optimizeDependencies               ' │ 1598072324331 │\n│   34    │ '                  compilation.hooks.log                                ' │ 1598072324331 │\n│   35    │ '                  compilation.hooks.log                                ' │ 1598072324332 │\n│   36    │ '                  compilation.hooks.log                                ' │ 1598072324332 │\n│   37    │ '                  compilation.hooks.afterOptimizeDependencies          ' │ 1598072324333 │\n│   38    │ '                  compilation.hooks.log                                ' │ 1598072324333 │\n│   39    │ '                  compilation.hooks.beforeChunks                       ' │ 1598072324333 │\n│   40    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   41    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   42    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   43    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   44    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   45    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   46    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   47    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   48    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   49    │ '                  compilation.hooks.afterChunks                        ' │ 1598072324334 │\n│   50    │ '                  compilation.hooks.log                                ' │ 1598072324334 │\n│   51    │ '                  compilation.hooks.optimize                           ' │ 1598072324334 │\n│   52    │ '                  compilation.hooks.optimizeModules                    ' │ 1598072324334 │\n│   53    │ '                  compilation.hooks.afterOptimizeModules               ' │ 1598072324334 │\n│   54    │ '                  compilation.hooks.optimizeChunks                     ' │ 1598072324335 │\n│   55    │ '                  compilation.hooks.log                                ' │ 1598072324336 │\n│   56    │ '                  compilation.hooks.log                                ' │ 1598072324336 │\n│   57    │ '                  compilation.hooks.log                                ' │ 1598072324336 │\n│   58    │ '                  compilation.hooks.log                                ' │ 1598072324336 │\n│   59    │ '                  compilation.hooks.afterOptimizeChunks                ' │ 1598072324337 │\n│   60    │ '                  compilation.hooks.optimizeTree                       ' │ 1598072324337 │\n│   61    │ '                  compilation.hooks.afterOptimizeTree                  ' │ 1598072324337 │\n│   62    │ '                  compilation.hooks.optimizeChunkModules               ' │ 1598072324337 │\n│   63    │ '                  compilation.hooks.log                                ' │ 1598072324337 │\n│   64    │ '                  compilation.hooks.log                                ' │ 1598072324337 │\n│   65    │ '                  compilation.hooks.log                                ' │ 1598072324337 │\n│   66    │ '                  compilation.hooks.log                                ' │ 1598072324337 │\n│   67    │ '                  compilation.hooks.log                                ' │ 1598072324337 │\n│   68    │ '                  compilation.hooks.log                                ' │ 1598072324337 │\n│   69    │ '                  compilation.hooks.log                                ' │ 1598072324337 │\n│   70    │ '                  compilation.hooks.afterOptimizeChunkModules          ' │ 1598072324338 │\n│   71    │ '                  compilation.hooks.shouldRecord                       ' │ 1598072324338 │\n│   72    │ '                  compilation.hooks.reviveModules                      ' │ 1598072324338 │\n│   73    │ '                  compilation.hooks.beforeModuleIds                    ' │ 1598072324338 │\n│   74    │ '                  compilation.hooks.moduleIds                          ' │ 1598072324338 │\n│   75    │ '                  compilation.hooks.optimizeModuleIds                  ' │ 1598072324339 │\n│   76    │ '                  compilation.hooks.afterOptimizeModuleIds             ' │ 1598072324339 │\n│   77    │ '                  compilation.hooks.reviveChunks                       ' │ 1598072324339 │\n│   78    │ '                  compilation.hooks.beforeChunkIds                     ' │ 1598072324339 │\n│   79    │ '                  compilation.hooks.chunkIds                           ' │ 1598072324339 │\n│   80    │ '                  compilation.hooks.optimizeChunkIds                   ' │ 1598072324339 │\n│   81    │ '                  compilation.hooks.afterOptimizeChunkIds              ' │ 1598072324339 │\n│   82    │ '                  compilation.hooks.recordModules                      ' │ 1598072324340 │\n│   83    │ '                  compilation.hooks.recordChunks                       ' │ 1598072324340 │\n│   84    │ '                  compilation.hooks.optimizeCodeGeneration             ' │ 1598072324340 │\n│   85    │ '                  compilation.hooks.log                                ' │ 1598072324340 │\n│   86    │ '                  compilation.hooks.beforeModuleHash                   ' │ 1598072324340 │\n│   87    │ '                  compilation.hooks.log                                ' │ 1598072324341 │\n│   88    │ '                  compilation.hooks.afterModuleHash                    ' │ 1598072324341 │\n│   89    │ '                  compilation.hooks.log                                ' │ 1598072324341 │\n│   90    │ '                  compilation.hooks.beforeCodeGeneration               ' │ 1598072324341 │\n│   91    │ '                  compilation.hooks.log                                ' │ 1598072324342 │\n│   92    │ '                  compilation.hooks.afterCodeGeneration                ' │ 1598072324342 │\n│   93    │ '                  compilation.hooks.log                                ' │ 1598072324342 │\n│   94    │ '                  compilation.hooks.beforeRuntimeRequirements          ' │ 1598072324342 │\n│   95    │ '                  compilation.hooks.additionalModuleRuntimeRequirements' │ 1598072324342 │\n│   96    │ '                  compilation.hooks.additionalChunkRuntimeRequirements ' │ 1598072324342 │\n│   97    │ '                  compilation.hooks.additionalTreeRuntimeRequirements  ' │ 1598072324343 │\n│   98    │ '                  compilation.hooks.afterRuntimeRequirements           ' │ 1598072324343 │\n│   99    │ '                  compilation.hooks.log                                ' │ 1598072324343 │\n│   100   │ '                  compilation.hooks.beforeHash                         ' │ 1598072324343 │\n│   101   │ '                  compilation.hooks.log                                ' │ 1598072324343 │\n│   102   │ '                  compilation.hooks.log                                ' │ 1598072324343 │\n│   103   │ '                  compilation.hooks.chunkHash                          ' │ 1598072324344 │\n│   104   │ '                  compilation.hooks.contentHash                        ' │ 1598072324345 │\n│   105   │ '                  compilation.hooks.log                                ' │ 1598072324345 │\n│   106   │ '                  compilation.hooks.log                                ' │ 1598072324345 │\n│   107   │ '                  compilation.hooks.fullHash                           ' │ 1598072324345 │\n│   108   │ '                  compilation.hooks.log                                ' │ 1598072324345 │\n│   109   │ '                  compilation.hooks.log                                ' │ 1598072324345 │\n│   110   │ '                  compilation.hooks.afterHash                          ' │ 1598072324345 │\n│   111   │ '                  compilation.hooks.log                                ' │ 1598072324345 │\n│   112   │ '                  compilation.hooks.recordHash                         ' │ 1598072324345 │\n│   113   │ '                  compilation.hooks.log                                ' │ 1598072324345 │\n│   114   │ '                  compilation.hooks.beforeModuleAssets                 ' │ 1598072324345 │\n│   115   │ '                  compilation.hooks.log                                ' │ 1598072324345 │\n│   116   │ '                  compilation.hooks.shouldGenerateChunkAssets          ' │ 1598072324345 │\n│   117   │ '                  compilation.hooks.beforeChunkAssets                  ' │ 1598072324345 │\n│   118   │ '                  compilation.hooks.renderManifest                     ' │ 1598072324346 │\n│   119   │ '                  compilation.hooks.assetPath                          ' │ 1598072324346 │\n│   120   │ '                  compilation.hooks.chunkAsset                         ' │ 1598072324348 │\n│   121   │ '                  compilation.hooks.log                                ' │ 1598072324348 │\n│   122   │ '                  compilation.hooks.additionalChunkAssets              ' │ 1598072324348 │\n│   123   │ '                  compilation.hooks.additionalAssets                   ' │ 1598072324348 │\n│   124   │ '                  compilation.hooks.optimizeAssets                     ' │ 1598072324348 │\n│   125   │ '                  compilation.hooks.processAssets                      ' │ 1598072324348 │\n│   126   │ '                  compilation.hooks.optimizeChunkAssets                ' │ 1598072324348 │\n│   127   │ '                  compilation.hooks.afterOptimizeChunkAssets           ' │ 1598072324348 │\n│   128   │ '                  compilation.hooks.assetPath                          ' │ 1598072324360 │\n│   129   │ '                  compilation.hooks.afterOptimizeAssets                ' │ 1598072324438 │\n│   130   │ '                  compilation.hooks.afterProcessAssets                 ' │ 1598072324438 │\n│   131   │ '                  compilation.hooks.log                                ' │ 1598072324438 │\n│   132   │ '                  compilation.hooks.record                             ' │ 1598072324438 │\n│   133   │ '                  compilation.hooks.needAdditionalSeal                 ' │ 1598072324438 │\n│   134   │ '                  compilation.hooks.afterSeal                          ' │ 1598072324438 │\n│   135   │ '                  compilation.hooks.log                                ' │ 1598072324438 │\n│   136   │ '                     compiler.hooks.afterCompile                       ' │ 1598072324438 │\n│   137   │ '                  compilation.hooks.log                                ' │ 1598072324438 │\n│   138   │ '                     compiler.hooks.shouldEmit                         ' │ 1598072324439 │\n│   139   │ '                     compiler.hooks.emit                               ' │ 1598072324439 │\n│   140   │ '                  compilation.hooks.assetPath                          ' │ 1598072324439 │\n│   141   │ '                     compiler.hooks.afterEmit                          ' │ 1598072324440 │\n│   142   │ '                  compilation.hooks.log                                ' │ 1598072324441 │\n│   143   │ '                  compilation.hooks.needAdditionalPass                 ' │ 1598072324441 │\n│   144   │ '                  compilation.hooks.log                                ' │ 1598072324441 │\n│   145   │ '                     compiler.hooks.done                               ' │ 1598072324441 │\n└─────────┴───────────────────────────────────────────────────────────────────────────┴───────────────┘\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenxsan%2Fwebpack-hooks-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenxsan%2Fwebpack-hooks-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenxsan%2Fwebpack-hooks-list/lists"}