Skip to content

Commit

Permalink
Only disable cache in non dev-server (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
danez authored Dec 15, 2016
1 parent b855b29 commit e3588ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/options/OptionHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ class OptionHelper {
const result = Object.assign({}, options);
Object.keys(defaults.gruntOptions).forEach(key => delete result[key]);

// ensure cache is disabled, as we add our own CachePlugin to support
// multiple targets in one run with different caches
result.cache = false;

return result;
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/options/WebpackOptionHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class WebpackOptionHelper extends OptionHelper {
return options.map((opt) => this.filterGruntOptions(opt));
}

// ensure cache is disabled, as we add our own CachePlugin to support
// multiple targets in one run with different caches
options.cache = false;

return this.filterGruntOptions(options);
}
}
Expand Down

0 comments on commit e3588ca

Please sign in to comment.