File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,12 @@ export default async function getClassNames(
72
72
? [ 'separator' ]
73
73
: [ 'options' , 'separator' ]
74
74
let userSeperator
75
+ let userPurge
75
76
let hook = Hook ( configPath , ( exports ) => {
76
77
userSeperator = dlv ( exports , sepLocation )
78
+ userPurge = exports . purge
77
79
dset ( exports , sepLocation , '__TAILWIND_SEPARATOR__' )
80
+ exports . purge = { }
78
81
return exports
79
82
} )
80
83
@@ -106,6 +109,11 @@ export default async function getClassNames(
106
109
} else {
107
110
delete config [ sepLocation ]
108
111
}
112
+ if ( typeof userPurge !== 'undefined' ) {
113
+ config . purge = userPurge
114
+ } else {
115
+ delete config . purge
116
+ }
109
117
110
118
const resolvedConfig = resolveConfig ( { cwd : configDir , config } )
111
119
const browserslist = browserslistModule
You can’t perform that action at this time.
0 commit comments