angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.13k stars 1.24k forks source link

Exclude bower library from mini / ugly #2041

Open whittssg opened 8 years ago

whittssg commented 8 years ago
Item Version
generator-angular-fullstack 3.5.0
Node x.x.x
npm x.x.x
Operating System OS X 10 / Windows 10 / Ubuntu 15.10 / etc
etc etc
Item Answer
Transpiler Babel /
Markup HTML /
CSS CSS
Router ui-router
Build Tool Grunt
Client Tests Mocha
DB MongoDB /
Auth Y

Hello, i am having problems with a JS library once my app has been built (one particular service from the library in particular) - is there a way to exclude a particular library from this process?

Thanks

Awk34 commented 8 years ago

@whittssg look into the grunt-usemin readme, and subsequently grunt-contrib-uglify

Awk34 commented 8 years ago

It might be a problem with the library that's being uglified, though. What library/service is it? Maybe file a bug with them.

whittssg commented 8 years ago

Its the angular material UI library. I filed an issue with them since its only one of their services out of many that has the issue (the particular service works fine until the app is built) - they said that i wasn't injecting my dependencies correctly but i believe that i am since their other services work fine after building (and the error occurs within the vendor.js file). Thanks for the links (i asked about this on here in case there was some kind of built in EXCEPT clause in the gruntfile that i couldn't see) - I will read though them.