Update gulpfile.babel.js

This commit is contained in:
Taylor Bryant 2020-01-25 18:48:56 -06:00 committed by GitHub
parent 41dfdb8d6c
commit 3ba76262f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ const spawn = isWindowsPlatform
const isDevelopmentBuild = process.env.NODE_ENV === "development";
// Custom PurgeCSS Extractor for Tailwind CSS
const purgeFromTailwind = content => content.match(/[\w-/:]+(?<!:)/g) || [];
const purgeForTailwind = content => content.match(/[\w-/:]+(?<!:)/g) || [];
task("buildJekyll", () => {
browserSync.notify("Building Jekyll site...");
@ -50,7 +50,7 @@ task("processStyles", () => {
content: [`${SITE_ROOT}/**/*.html`],
extractors: [
{
extractor: purgeFromTailwind,
extractor: purgeForTailwind,
extensions: ["html", "js"]
}
]