Adjusted grunt command so it behaves differently on production and

development
This commit is contained in:
Blade Barringer
2015-02-13 09:31:56 -06:00
parent 9dfd96b84f
commit ca50c31bc0
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
/*global module:false*/
var _ = require('lodash');
var config = require('./config');
module.exports = function(grunt) {
// Ported from shared
@@ -234,6 +235,11 @@ module.exports = function(grunt) {
grunt.registerTask('run:dev', [ 'build:dev', 'concurrent' ]);
if(config.NODE_ENV == 'production')
grunt.registerTask('default', ['build:prod']);
else
grunt.registerTask('default', ['build:dev']);
// Load tasks
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');