Only enable Sass watcher in development

This commit is contained in:
Shadowfacts 2019-09-17 15:34:48 -04:00
parent 5b307675b1
commit 99637521d4
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 4 additions and 2 deletions

View File

@ -34,5 +34,7 @@ export default async function css() {
await generate("dark");
await generate("auto");
require("fs").watch("site/css/", css);
}
if (process.env.NODE_ENV === "development") {
require("fs").watch("site/css/", css);
}
}