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

fix: fallback for cache directory #401

Merged
merged 1 commit into from
May 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/TaskRunner.js
Original file line number Diff line number Diff line change
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