Skip to content

Commit ccb0ffa

Browse files
committed
1 parent afb5501 commit ccb0ffa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ class Purgecss {
108108
getCssContents(cssOptions: Array<any>, cssSelectors: Set<string>): Array<ResultPurge> {
109109
const sources = []
110110

111+
// resolve any globs and flatten again
112+
cssOptions = cssOptions.map(option => {
113+
return typeof option === 'string' ? glob.sync(option) : option
114+
})
115+
cssOptions = [].concat.apply([], cssOptions)
116+
111117
for (let option of cssOptions) {
112118
let file = null
113119
let cssContent = ''

0 commit comments

Comments
 (0)