Only enable Sass watcher in development
This commit is contained in:
parent
5b307675b1
commit
99637521d4
|
@ -34,5 +34,7 @@ export default async function css() {
|
|||
await generate("dark");
|
||||
await generate("auto");
|
||||
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
require("fs").watch("site/css/", css);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue