Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Update PurgeCSS extractor for Tailwind.
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Jan 21, 2020
1 parent c562256 commit 97e3116
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions gridsome.config.js
@@ -1,9 +1,3 @@
class TailwindExtractor {
static extract(content) {
return content.match(/[A-Za-z0-9-_:\/]+/g) || [];
}
}

module.exports = {
siteName: 'A blog starter for Gridsome',
siteDescription: "Bleda is a blog starter kit for Gridsome, the Vue.js static site generator. It's inspired by Attila for Ghost, and styled with Tailwind CSS.",
Expand Down Expand Up @@ -103,12 +97,7 @@ module.exports = {
'src/**/*.vue',
'src/**/*.js'
],
extractors: [
{
extractor: TailwindExtractor,
extensions: ['css', 'vue', 'js']
}
],
defaultExtractor: content => content.match(/[\w-/:%]+(?<!:)/g) || [],
whitelistPatterns: [/shiki/]
}),
])
Expand Down

0 comments on commit 97e3116

Please sign in to comment.