From efb6a9fe7eef0f6c63b0a5ec62e9fffe5bbe4cd8 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 23 Feb 2016 14:26:16 -0500 Subject: [PATCH] added option to skip asset compilation on initial grunt startup with --skip flag --- Gruntfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index cb765776be..36c054445f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -69,7 +69,13 @@ module.exports = function(grunt) { }); grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.registerTask('default', ['watch']); + + if (grunt.option('skip')) { + grunt.registerTask('default', ['watch:serverUpdated']); + } else { + grunt.registerTask('default', ['watch']); + } + env.NODE_ENV = 'development';