zont / gulp-usemin

MIT License
338 stars 92 forks source link

Does Not Minify Angular Boostrap (UI Bootrap) #148

Open codebend3r opened 8 years ago

codebend3r commented 8 years ago

Minifying ui-bootstrap js doesn't work for some strange reason:

<script src='bower_components/angular-bootstrap/ui-bootstrap.js'></script>
<script src='bower_components/angular-bootstrap/ui-bootstrap-tpls.js'></script>

All my other files minify perfectly fine, except for both ui.bootstrap.

I tried copying the content of that js file, I tried renaming it, and I tried moving the entire folder to another folder and none of that works. What could this code contain that does not allow it to minify?

<!-- build:js js/bower.js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src='bower_components/bootstrap/dist/js/bootstrap.js'></script>

<script src='bower_components/angular-bootstrap/ui-bootstrap.js'></script>
<script src='bower_components/angular-bootstrap/ui-bootstrap-tpls.js'></script>

<!-- endbuild -->
fdrobidoux commented 8 years ago

Have you tried removing the empty lines in-between? Have you tried minifying and concatenating them together without the usage of gulp-usemin?