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

Commit d117827

Browse files
authoredMay 14, 2019
fix: fallback for cache directory (#401)
1 parent 9bc2fde commit d117827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/TaskRunner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class TaskRunner {
1414
const { cache, parallel } = options;
1515
this.cacheDir =
1616
cache === true
17-
? findCacheDir({ name: 'uglifyjs-webpack-plugin' })
17+
? findCacheDir({ name: 'uglifyjs-webpack-plugin' }) || os.tmpdir()
1818
: cache;
1919
// In some cases cpus() returns undefined
2020
// https://github.com/nodejs/node/issues/19022

0 commit comments

Comments
 (0)
This repository has been archived.