Created
October 20, 2025 16:31
-
-
Save joemaller/e69804d869d98ccf411eac8e00ae30a4 to your computer and use it in GitHub Desktop.
webpack Compilation Stage numeric equivalents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // webpack v5.102.1 (generated 2025-10-20) | |
| import webpack from "webpack"; | |
| console.log("Webpack Compilation Stages:", webpack.Compilation); | |
| // https://webpack.js.org/api/compilation-hooks/#list-of-asset-processing-stages | |
| const result = { | |
| PROCESS_ASSETS_STAGE_ADDITIONAL: -2000, | |
| PROCESS_ASSETS_STAGE_PRE_PROCESS: -1000, | |
| PROCESS_ASSETS_STAGE_DERIVED: -200, | |
| PROCESS_ASSETS_STAGE_ADDITIONS: -100, | |
| PROCESS_ASSETS_STAGE_OPTIMIZE: 100, | |
| PROCESS_ASSETS_STAGE_OPTIMIZE_COUNT: 200, | |
| PROCESS_ASSETS_STAGE_OPTIMIZE_COMPATIBILITY: 300, | |
| PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE: 400, | |
| PROCESS_ASSETS_STAGE_DEV_TOOLING: 500, | |
| PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE: 700, | |
| PROCESS_ASSETS_STAGE_SUMMARIZE: 1000, | |
| PROCESS_ASSETS_STAGE_OPTIMIZE_HASH: 2500, | |
| PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER: 3000, | |
| PROCESS_ASSETS_STAGE_ANALYSE: 4000, | |
| PROCESS_ASSETS_STAGE_REPORT: 5000 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment