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(
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
You can’t perform that action at this time.
0 commit comments