Warning: Uglification failed. Unexpected token: punc ()).
grunt build gives this issue, which calls the uglify task, does it have to do with the ':' that I've misused?
Warning: Uglification failed. Unexpected token: punc ()).
grunt build gives this issue, which calls the uglify task, does it have to do with the ':' that I've misused?
There is a stray comma at the end of "in_orderId": $rootScope.payBillResponse.CheckoutResponse.OrderId,
and there is a colon that could be put on a single line as part of !(engine.propertyIsEnumerable('length'))) ? engine[0] : engine;
.
If neither of those help, make a copy of the file and remove first the top half and run uglify, and see if you get the error, then repeat with the bottom half, repeat to isolate the cause.
The benefits of using a tool like http://www.jslint.com/ or http://jshint.com/ or http://eslint.org/ include helping to keep your code cleaner and closer to standard so that it is less likely to throw errors with tools like uglify.