Is it possible to run two grunt tasks in one .bat script?
I tried the following:
grunt --param=val1 --force
grunt --param=val2 --force
But only the first task was run. Any ideas?
Grunt will exit your BAT when it ends (not sure why, but it does). To ensure you continue running even after grunt exits, you will need to use the "call" function:
call grunt --your-args-here-1
call grunt --your-args-here-2
Note that if the first grunt fail, you will still run the second grunt. I'm not sure how to solve this, and I don't need it, hopefully ^_^
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