Generate CSS output based on NODE_ENV
This commit is contained in:
parent
6e785fb0a1
commit
0e5aa15715
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue