restore user-defined mode config after compilation
parent
93405340aa
commit
72ad324467
|
@ -70,9 +70,11 @@ export default async function getClassNames(
|
|||
: ['options', 'separator']
|
||||
let userSeperator
|
||||
let userPurge
|
||||
let userMode
|
||||
let hook = Hook(fs.realpathSync(configPath), (exports) => {
|
||||
userSeperator = dlv(exports, sepLocation)
|
||||
userPurge = exports.purge
|
||||
userMode = exports.mode
|
||||
dset(
|
||||
exports,
|
||||
sepLocation,
|
||||
|
@ -145,6 +147,11 @@ export default async function getClassNames(
|
|||
} else {
|
||||
delete config.purge
|
||||
}
|
||||
if (typeof userMode !== 'undefined') {
|
||||
config.mode = userMode
|
||||
} else {
|
||||
delete config.mode
|
||||
}
|
||||
|
||||
const resolvedConfig = resolveConfig({
|
||||
base: configDir,
|
||||
|
|
Loading…
Reference in New Issue