added option to skip asset compilation on initial grunt startup with --skip flag

This commit is contained in:
psychobunny
2016-02-23 14:26:16 -05:00
parent b18052210d
commit efb6a9fe7e

View File

@@ -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';