mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 13:17:24 +01:00
Adjusted grunt command so it behaves differently on production and
development
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user