gulp-local-cache
A gulp plugin that provides a persisted file cache
Install
yarn add -D gulp-local-cache # npm works too npm i -D gulp-local-cache
Use
const cache = const gulp = gulp
cache.clear([key])
Clear the cache. A key can be provided to specifically clear that cache
// clear entire cachecacheclear// only clear `assets` cachecacheclear'assets'
cache.filter([key])
Filter out cached files that haven't changed. An optional cache key can be provided if you need to, for example, cache files at multiple stages of the build
gulp
cache.path([filepath])
Get or set the location of the cache file. Default path is .gulpcache
// get currentcache// set newcache