Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
fix: fallback for cache directory (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed May 14, 2019
1 parent 9bc2fde commit d117827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaskRunner.js
Expand Up @@ -14,7 +14,7 @@ export default class TaskRunner {
const { cache, parallel } = options;
this.cacheDir =
cache === true
? findCacheDir({ name: 'uglifyjs-webpack-plugin' })
? findCacheDir({ name: 'uglifyjs-webpack-plugin' }) || os.tmpdir()
: cache;
// In some cases cpus() returns undefined
// https://github.com/nodejs/node/issues/19022
Expand Down

0 comments on commit d117827

Please sign in to comment.