Skip to content

Node.js based forum software built for the modern web

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

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