jgable / gulp-cache

A cache proxy task for Gulp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

self.task.setMaxListeners is not a function

jklmli opened this issue · comments

Running into the same error as #45.

gulp.task 'css:test', ->
  gulp.src "front/src/css/site/front/lib/about.less"
    .pipe cache(new cache.Cache { cacheDirName: 'custom-cache' }, {})
    .pipe gulp.dest util.paths.less.out

It looks like CacheSwap doesn't have a setMaxListeners method?

Oh, I completely misunderstood the documentation. I didn't realize I had to pass the transform as the first argument, I read https://github.com/jgable/gulp-cache#options as positional args. This is different from how https://github.com/contra/gulp-cached does things.