ignore purge option (#131)
parent
aaa9bd9f2b
commit
647b556a6c
|
@ -72,9 +72,12 @@ export default async function getClassNames(
|
|||
? ['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
|
||||
})
|
||||
|
||||
|
@ -106,6 +109,11 @@ export default async function getClassNames(
|
|||
} else {
|
||||
delete config[sepLocation]
|
||||
}
|
||||
if (typeof userPurge !== 'undefined') {
|
||||
config.purge = userPurge
|
||||
} else {
|
||||
delete config.purge
|
||||
}
|
||||
|
||||
const resolvedConfig = resolveConfig({ cwd: configDir, config })
|
||||
const browserslist = browserslistModule
|
||||
|
|
Loading…
Reference in New Issue