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

Add TAILWIND_TOUCH_ROOT env var for custom touch dir #152

Merged
merged 2 commits into from
Mar 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/setupContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ let env = sharedState.env
// Earmarks a directory for our touch files.
// If the directory already exists we delete any existing touch files,
// invalidating any caches associated with them.

const touchDir = path.join(os.homedir() || os.tmpdir(), '.tailwindcss', 'touch')
const touchDir =
process.env.TAILWIND_TOUCH_DIR || path.join(os.homedir() || os.tmpdir(), '.tailwindcss', 'touch')

if (fs.existsSync(touchDir)) {
for (let file of fs.readdirSync(touchDir)) {
Expand Down