mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
Corrected gruntfile to use process.env.NODE_ENV
This commit is contained in:
parent
ca50c31bc0
commit
7cf8745375
1 changed files with 1 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
|||
/*global module:false*/
|
||||
var _ = require('lodash');
|
||||
var config = require('./config');
|
||||
module.exports = function(grunt) {
|
||||
|
||||
// Ported from shared
|
||||
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue