Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 19ed602

Browse files
authored
Add TAILWIND_TOUCH_ROOT env var for custom touch dir (#152)
* Add TAILWIND_TOUCH_DIR env var for custom touch dir * Switch env var TAILWIND_TOUCH_ROOT to TAILWIND_TOUCH_DIR
1 parent a187332 commit 19ed602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/setupContext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ let env = sharedState.env
3131
// Earmarks a directory for our touch files.
3232
// If the directory already exists we delete any existing touch files,
3333
// invalidating any caches associated with them.
34-
35-
const touchDir = path.join(os.homedir() || os.tmpdir(), '.tailwindcss', 'touch')
34+
const touchDir =
35+
process.env.TAILWIND_TOUCH_DIR || path.join(os.homedir() || os.tmpdir(), '.tailwindcss', 'touch')
3636

3737
if (!sharedState.env.TAILWIND_DISABLE_TOUCH) {
3838
if (fs.existsSync(touchDir)) {

0 commit comments

Comments
 (0)