A function that is called on the completion of a packaging stage.
By default, the functions are called in parallel (via
Promise.all).
If you need the functions called serially, there is a utility function provided. Please note that
callback-style functions are not supported by serialHooks. For example:
A function that is called on the completion of a packaging stage.
By default, the functions are called in parallel (via
Promise.all
). If you need the functions called serially, there is a utility function provided. Please note that callback-style functions are not supported byserialHooks
. For example:For real-world examples of
HookFunction
s, see the list of related plugins.