Skip to content

Commit

Permalink
fixup! fix: use find-cache-dir for default cache directory (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzgoddard committed May 28, 2018
1 parent 2da0e2e commit aeb864f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ class HardSourceWebpackPlugin {

if (!options.cacheDirectory) {
options.cacheDirectory = path.resolve(
findCacheDir({name: 'hard-source', cwd: compiler.options.context || process.cwd()}),
findCacheDir({
name: 'hard-source',
cwd: compiler.options.context || process.cwd(),
}),
'[confighash]',
);
}
Expand Down

0 comments on commit aeb864f

Please sign in to comment.