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.
You 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));
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With