Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
morrislaptop committed Apr 23, 2018
1 parent afb5501 commit ccb0ffa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ class Purgecss {
getCssContents(cssOptions: Array<any>, cssSelectors: Set<string>): Array<ResultPurge> {
const sources = []

// resolve any globs and flatten again
cssOptions = cssOptions.map(option => {
return typeof option === 'string' ? glob.sync(option) : option
})
cssOptions = [].concat.apply([], cssOptions)

for (let option of cssOptions) {
let file = null
let cssContent = ''
Expand Down

0 comments on commit ccb0ffa

Please sign in to comment.