I'd like to really learn how Grunt is working and be able to debug it later. How do I print out all of the configuration Grunt has at a given time? I'd like to see the merging of .initConfig, the package file, and any task level configuration.
I'd like to really learn how Grunt is working and be able to debug it later. How do I print out all of the configuration Grunt has at a given time? I'd like to see the merging of .initConfig, the package file, and any task level configuration.
Share Improve this question asked Apr 24, 2013 at 15:58 SimplGySimplGy 20.4k15 gold badges111 silver badges150 bronze badges1 Answer
Reset to default 21You can print out the grunt configuration by setting up a grunt task like this:
grunt.registerTask('printConfig', function() {
grunt.log.writeln(JSON.stringify(grunt.config(), null, 2));
});