I am trying to minify my project in two files:
. one minified files which contains all our dependencies, eg: angular.js, angular-route.js, angular-touch.js, underscore.js etc,
. one minified file which represent my application, eg: userModule and business modules.
I tried to achieve this in two ways:
. by concatenating the minified version of the libraries that I need for my project and secondly,
. by concatenating all the un-minified version of the same libraries and minifying it with uglifyjs.
In either way the resulting files was throwing "Unexpected token" exceptions in the browser due to some syntactic issues in angular.js file.
So I wonder how anyone can ever minify that file at all. Should I use another tool instead?