To avoid this
Generating AngularJS production files with Gulp
Marijus Plančiūnas
296

Why doing this we can use ES6 modular and use browserify or webpack to bundle the generated scripts to one file, I made browserify boilerplate which lets you use ES6 and transform the code with babelify to ES5 (normal javascript) for the browsers, in addition to ES6 gulp tasks.
You can use the boilerplate to benefit from the latest technologies with today browsers: https://www.github.com/yabasha/angularify

Show your support

Clapping shows how much you appreciated Bashar Ayyash’s story.