Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
ignore purge option (#131)
Brad Cornes <bradlc41@gmail.com>
4 years ago
1 changed files, 8 additions(+), 0 deletions(-)
M src/class-names/index.js -> src/class-names/index.js
diff --git a/src/class-names/index.js b/src/class-names/index.js
index 247dc481c82b4f83e0771089cbc7bfcc27e8116a..ca8ddec1e8696085fcb79738f7bdb42fe08beb72 100644
--- a/src/class-names/index.js
+++ b/src/class-names/index.js
@@ -72,9 +72,12 @@     const sepLocation = semver.gte(version, '0.99.0')
       ? ['separator']
       : ['options', 'separator']
     let userSeperator
+    let userPurge
     let hook = Hook(configPath, (exports) => {
       userSeperator = dlv(exports, sepLocation)
+      userPurge = exports.purge
       dset(exports, sepLocation, '__TAILWIND_SEPARATOR__')
+      exports.purge = {}
       return exports
     })
 
@@ -105,6 +108,11 @@     if (typeof userSeperator !== 'undefined') {
       dset(config, sepLocation, userSeperator)
     } else {
       delete config[sepLocation]
+    }
+    if (typeof userPurge !== 'undefined') {
+      config.purge = userPurge
+    } else {
+      delete config.purge
     }
 
     const resolvedConfig = resolveConfig({ cwd: configDir, config })