I have AngularJS application in Visual Studio 2015, previous versions work well in production. The last version also works well in debug mode, also published on my local machine. The problem gets tricky when the above mentioned published version is set to webserver. The application does not load at all. The errors in console looks like this
Also, the application uses http://getcassette.net/ for bundling. Also, the app.js file is where controllers and services are stored. I reviewed my code multiple times, also checked the logs in SVN. The changes are minimal. There is no return statement outside a function call, to get the first error, i.e. Illegal return statement.