This commit is contained in:
Taylor Bryant 2020-01-25 12:41:17 -06:00
parent 6b1291b7c0
commit 08648a119c

View File

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