It seems like grunt-inline does't handle exceptions as described in the post http://stackoverflow.com/questions/41246030/why-doesnt-gruntjs-break-execution-if-exception-is-thrown