jgable / gulp-cache

A cache proxy task for Gulp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exclude list of files from being cached

fragsalat opened this issue · comments

Hey there,

maybe that's already possible but I'm searching for a possibility to exclude certain files from being cached.
The setup right now looks like src -> babel -> cache. My problem is that I have a babel plugin to inline an imported yaml file as js object. When this file changes I want to rebuild the bundle but as the importing file didn't changed it is still cached with the old value.

An option like exclude(file) { return file.path.inludes('file.js'); } would be cool

What do you think?

Best
FragSalat