cache-loader

JSON →
library 4.1.0 ·javascript
verified Jun 7, 2026

Caches the result of following webpack loaders on disk (or database) to speed up subsequent builds. The current stable version is 4.1.0, actively maintained by the webpack-contrib team. Key differentiator: it caches at the loader level rather than at the module level like hard-source-webpack-plugin, making it ideal for expensive transpilation or compilation loaders. Note that there is overhead for reading/writing cache files, so only use for expensive loaders. Supports configurable cache directory, cache key, cache identifier, read/write functions, and read-only mode.