We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afb5501 commit ccb0ffaCopy full SHA for ccb0ffa
src/index.js
@@ -108,6 +108,12 @@ class Purgecss {
108
getCssContents(cssOptions: Array<any>, cssSelectors: Set<string>): Array<ResultPurge> {
109
const sources = []
110
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
+
117
for (let option of cssOptions) {
118
let file = null
119
let cssContent = ''
0 commit comments