Joined March 2014
·

Michael Minor

Chicago, IL, USA
·
·

Posted to Bower and Rails. Friends forever. over 1 year ago

Rails 3.x

There is a very LARGE issue with this approach. Sprockets itself is over bearing when it comes to actually finding js and css files... It doesn't check the actual file extension.

Example:
Sprockets::EncodingError: /vagrant/vendor/assets/bower_components/angular/angular.min.js.gzip

There are a lot of articles on Bower integration in Sprockets, and really, it seems like they're all a rehash with a few opinions on top. But as soon as you add Angular, an extremely popular library, it breaks the standard asset pipeline.

So there should be some cautionary advice around this.

Achievements
28 Karma
0 Total ProTip Views
Interests & Skills