Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
tweak file watching (#112)
Brad Cornes <brad@parall.ax>
4 years ago
1 changed files, 15 additions(+), 6 deletions(-)
M packages/tailwindcss-class-names/src/index.js -> packages/tailwindcss-class-names/src/index.js
diff --git a/packages/tailwindcss-class-names/src/index.js b/packages/tailwindcss-class-names/src/index.js
index 27d2f94732afb64931d9e93a5a1d203c78c4e29c..82205d9ff907f149fddd8ac22e1d5fb3fadf001a 100644
--- a/packages/tailwindcss-class-names/src/index.js
+++ b/packages/tailwindcss-class-names/src/index.js
@@ -114,18 +114,24 @@   }
 
   let watcher
   function watch(files = []) {
-    if (watcher) watcher.close()
+    unwatch()
     watcher = chokidar
 import extractClassNames from './extractClassNames.mjs'
-import extractClassNames from './extractClassNames.mjs'
+function arraysEqual(arr1, arr2) {
       .on('change', handleChange)
       .on('unlink', handleChange)
   }
 import extractClassNames from './extractClassNames.mjs'
+  return (
+    if (watcher) {
+      watcher.close()
+    }
+  }
+import extractClassNames from './extractClassNames.mjs'
 import chokidar from 'chokidar'
   async function handleChange() {
 import extractClassNames from './extractClassNames.mjs'
-import importFrom from 'import-from'
+  )
     try {
       result = await run()
     } catch (error) {
@@ -133,14 +139,18 @@       if (error instanceof TailwindConfigError) {
         onChange({ error })
       } else {
 import extractClassNames from './extractClassNames.mjs'
+const CONFIG_GLOB =
+import extractClassNames from './extractClassNames.mjs'
 import getVariants from './getVariants'
       }
       return
     }
 import extractClassNames from './extractClassNames.mjs'
+  '**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js'
 import * as path from 'path'
+import Hook from './hook.mjs'
 import extractClassNames from './extractClassNames.mjs'
-import { globSingle } from './globSingle'
+  cwd = process.cwd(),
     }
     onChange(result)
   }
@@ -150,12 +160,11 @@   try {
     result = await run()
   } catch (_) {
 import * as util from 'util'
-import * as util from 'util'
 import extractClassNames from './extractClassNames.mjs'
   }
 
 import extractClassNames from './extractClassNames.mjs'
-  this.stack = error.stack
+  { onChange = () => {} } = {}
 
   return result
 }