Skip to content

Instantly share code, notes, and snippets.

@taylorbryant
Created January 25, 2020 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taylorbryant/0acc05c6ea886fac5b728e5286661077 to your computer and use it in GitHub Desktop.
Save taylorbryant/0acc05c6ea886fac5b728e5286661077 to your computer and use it in GitHub Desktop.
PurgeCSS V2 Tailwind Extractor
const purgeFromTailwind = content => content.match(/[\w-/:]+(?<!:)/g) || [];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment