APIActive

webpack Plugin API

Interface for building webpack plugins that hook into the compilation process.

Open source page ↗

Product features

Product features

35 Contributors

Bundle Analysis

Code Splitting

Custom Hooks

Plugins can expose custom hooks via a static getCompilationHooks method.

Dynamic Imports

Entry dependencies

Entry Points

Further Reading

Logging API

Available since webpack 4.37; use compilation.getLogger for stats logging.

Prefetching/Preloading modules

Prevent Duplication

ProgressPlugin

Reports progress messages to stderr by default; enabled with --progress.

SplitChunksPlugin

Tapable

Core utility library providing webpack's plugin interface and hook classes.

Tapable Tap Methods

tap, tapAsync and tapPromise inject custom build steps into a compilation.

Understanding ChunkLoadError