This commit is contained in:
Taylor Bryant 2020-01-25 12:41:17 -06:00
parent 6b1291b7c0
commit 08648a119c
1 changed files with 3 additions and 4 deletions

View File

@ -19,10 +19,9 @@ const isDevelopmentBuild = environment === DEVELOPMENT_ENVIRONMENT;
// Fix for Windows compatibility
const isWindowsPlatform = process.platform === "win32";
const jekyll = isWindowsPlatform ? "jekyll.bat" : "jekyll";
const spawn =
isWindowsPlatform === "win32"
? require("win-spawn")
: require("child_process").spawn;
const spawn = isWindowsPlatform
? require("win-spawn")
: require("child_process").spawn;
// Custom PurgeCSS Extractor for Tailwind CSS
const purgeFromTailwind = content => content.match(/[\w-/:]+(?<!:)/g) || [];