Skip to content

Commit 0b1fda7

Browse files
committed
build: changes to grunt debugging #318399
1 parent bba2d82 commit 0b1fda7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Gruntfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ module.exports = function(grunt) {
167167
grunt.registerTask('build-js', [ 'browserify', 'uglify' ]);
168168
grunt.registerTask('build-css', [ 'sass', 'postcss' ]);
169169
grunt.registerTask('build', [ 'build-js', 'build-css' ]);
170-
grunt.registerTask('develop', [ 'build', 'watch' ]);
170+
grunt.registerTask('develop', function() {
171+
// Set debug flag globally
172+
grunt.option('debug', true);
173+
// Run the tasks
174+
grunt.task.run([ 'build', 'watch' ]);
175+
});
171176
grunt.registerTask('default', [ 'standards' ]);
172177

173178
};

0 commit comments

Comments
 (0)