Generate CSS output based on NODE_ENV

This commit is contained in:
Shadowfacts 2019-09-17 17:02:31 -04:00
parent 6e785fb0a1
commit 0e5aa15715
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ function renderSass(data: string): Promise<SassResult> {
return new Promise((resolve, reject) => {
sass.render({
data: data,
outputStyle: process.env.MINIFY_CSS ? "compressed" : "expanded"
outputStyle: process.env.NODE_ENV === "development" ? "expanded" : "compressed"
}, (error, result) => {
if (error) reject(error);
else resolve(result);