ExtendedAPIPlugin

The ExtendedAPIPlugin adds two free variables to the compilation, which adds the global hash to the runtime.

  • __webpack_hash__: The hash of chunk
  • __webpack_chunkname__: The name of chunk

Don't combine ExtendedAPIPlugin with the HotModuleReplacementPlugin to avoid conflicts, they both add hashes to runtime.

Don't combine ExtendedAPIPlugin with the usage of [chunkhash] or [contenthash] in output configuration. See this pull request for details.

Usage

new webpack.ExtendedAPIPlugin();

Contributors