Is there any way of exporting the console log of your Grunt build to a *.txt file? I can run grunt in console with the >> thingy to export to file, like so:
grunt >> log.txt
But it does not log to console, only to file. And I'd like a module/task to do it for me after the build has finished.
This is not actually grunt or node.js question. You need to use piping to tee.
grunt | tee log.txt
Or if you're using windows cmd:
grunt > log.txt | type log.txt
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