Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.
Prev Previous commit
don't start watcher if touch is disabled
  • Loading branch information
bradlc committed Mar 26, 2021
commit 54216dd6861744fff206a70f47633cb826de3fad
4 changes: 4 additions & 0 deletions src/lib/setupContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ function generateTouchFileName() {
}

function rebootWatcher(context) {
if (env.TAILWIND_DISABLE_TOUCH) {
return
}

if (context.touchFile === null) {
context.touchFile = generateTouchFileName()
touch(context.touchFile)
Expand Down