Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steadicat/gulp-memoize
Wrap expensive transform steps in gulp-memoize() to cache the computation of an input stream while preserving the output stream
https://github.com/steadicat/gulp-memoize
Last synced: 29 days ago
JSON representation
Wrap expensive transform steps in gulp-memoize() to cache the computation of an input stream while preserving the output stream
- Host: GitHub
- URL: https://github.com/steadicat/gulp-memoize
- Owner: steadicat
- Created: 2014-07-21T22:18:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-25T21:32:31.000Z (over 10 years ago)
- Last Synced: 2024-11-06T21:28:11.554Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-memoize
Wrap expensive transforms in `gulp-memoize`:
~~~
gulp.task('sprites', function() {
return src(IMAGE_DIR + '*-sprite/*.png')
.pipe(memoize($.sprites2x()));
});
~~~In this example, `sprites2x` is performed only the first time the task
is ran, yet the output of the stream is the same on every run, so you
can safely pipe it into transforms that depend on this, like
`gulp-concat`.If any of the files in the source change, the cache is busted and
everything is recomputed.