Skip to main content

Callback afterEmit

Option: afterEmit

Type:

type AfterEmit = (
entries: Array<CompileEntry>,
compilation: Compilation
) => Promise<void> | void;

Default: null

Called after emitting assets to output directory. This callback can be useful to create a manifest file containing source and output filenames.

Callback parameters:

  • entries: Array<CompileEntry> the collection of entries containing all dependent assets,
    the description of the CompileEntry see by beforeEmit
  • compilation: Compilation - the Webpack compilation object