The hook is executed before we begin creating the production build. Use this hook to perform pre-build tasks like asset optimization.
The hook is executed after the production build has been created. Use this hook to perform post-build tasks or display build statistics.
Hooks executed when the production build is created.
Example