Skip to content

Commit

Permalink
Corrected gruntfile to use process.env.NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor committed Feb 13, 2015
1 parent ca50c31 commit 7cf8745
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*global module:false*/
var _ = require('lodash');
var config = require('./config');
module.exports = function(grunt) {

// Ported from shared
Expand Down Expand Up @@ -235,7 +234,7 @@ module.exports = function(grunt) {

grunt.registerTask('run:dev', [ 'build:dev', 'concurrent' ]);

if(config.NODE_ENV == 'production')
if(process.env.NODE_ENV == 'production')
grunt.registerTask('default', ['build:prod']);
else
grunt.registerTask('default', ['build:dev']);
Expand Down

0 comments on commit 7cf8745

Please sign in to comment.