Skip to content

Commit

Permalink
fix(index): set NODE_ENV when undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky committed Oct 19, 2016
1 parent d05736e commit b24501c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ module.exports = function postcssrc (ctx, path, options) {
path = path || process.cwd()
options = options || {}

if (ctx.env === undefined) {
process.env.NODE_ENV = 'development'
}

return config('postcss', options)
.load(path)
.then(function (result) {
Expand Down

0 comments on commit b24501c

Please sign in to comment.