Skip to content

Commit b24501c

Browse files
fix(index): set NODE_ENV when undefined
1 parent d05736e commit b24501c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ module.exports = function postcssrc (ctx, path, options) {
3737
path = path || process.cwd()
3838
options = options || {}
3939

40+
if (ctx.env === undefined) {
41+
process.env.NODE_ENV = 'development'
42+
}
43+
4044
return config('postcss', options)
4145
.load(path)
4246
.then(function (result) {

0 commit comments

Comments
 (0)