Skip to content

Commit

Permalink
Update postcss.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
brendannee committed Oct 8, 2020
1 parent 015c4a5 commit f8204f2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions postcss.config.js
Expand Up @@ -7,13 +7,7 @@ const purgecss = [
'./components/**/*.{js,jsx,ts,tsx}'
],
// This is the function used to extract class names from the templates
defaultExtractor: content => {
// Capture as liberally as possible, including things like `h-(screen-1.5)`
const broadMatches = content.match(/[^<>"'`\\s]*[^<>"'`\\s:]/g) || []
// Capture classes within other delimiters like .block(class="w-1/2") in Pug
const innerMatches = content.match(/[^<>"'`\\s.()]*[^<>"'`\\s.():]/g) || []
return broadMatches.concat(innerMatches)
}
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
}
]

Expand Down

1 comment on commit f8204f2

@vercel
Copy link

@vercel vercel bot commented on f8204f2 Oct 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.