I'm using Grunt hooked up with grunt-contrib-uglify task to minify JavaScript in my app.
Upon minification, it's removing every 'use strict' statement except the very first one, so I'm getting a huge JavaScript file with 'use strict' directive at the top.
The issue is that the global 'use strict' directive makes the browser execute the code of every lib I'm using in the project in the "strict mode" and it's causing errors, since not every 3rd party code is written for strict mode.
Any ideas on how to solve this?