Skip to content

Commit 647b556

Browse files
committed
ignore purge option (#131)
1 parent aaa9bd9 commit 647b556

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/class-names/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ export default async function getClassNames(
7272
? ['separator']
7373
: ['options', 'separator']
7474
let userSeperator
75+
let userPurge
7576
let hook = Hook(configPath, (exports) => {
7677
userSeperator = dlv(exports, sepLocation)
78+
userPurge = exports.purge
7779
dset(exports, sepLocation, '__TAILWIND_SEPARATOR__')
80+
exports.purge = {}
7881
return exports
7982
})
8083

@@ -106,6 +109,11 @@ export default async function getClassNames(
106109
} else {
107110
delete config[sepLocation]
108111
}
112+
if (typeof userPurge !== 'undefined') {
113+
config.purge = userPurge
114+
} else {
115+
delete config.purge
116+
}
109117

110118
const resolvedConfig = resolveConfig({ cwd: configDir, config })
111119
const browserslist = browserslistModule

0 commit comments

Comments
 (0)