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) => {
|
return new Promise((resolve, reject) => {
|
||||||
sass.render({
|
sass.render({
|
||||||
data: data,
|
data: data,
|
||||||
outputStyle: process.env.MINIFY_CSS ? "compressed" : "expanded"
|
outputStyle: process.env.NODE_ENV === "development" ? "expanded" : "compressed"
|
||||||
}, (error, result) => {
|
}, (error, result) => {
|
||||||
if (error) reject(error);
|
if (error) reject(error);
|
||||||
else resolve(result);
|
else resolve(result);
|
||||||
|
|
Loading…
Reference in New Issue