rails-assets
rails-assets copied to clipboard
Wrong info for imagesloaded
We need to require the pkgd version, similar to #400:
//= require imagesloaded/imagesloaded.pkgd
Can you suggest a way to programatically determine this? The only way I see is by reading the README. The bower.json specifies in "main" that imagesloaded.js
(not the pkgd version) is what should be loaded. It seems like this is an unfortunate consequence of the Bower maintainer changing the meaning of the "main" key of bower.json.
Programmatically? A naming map maintained by rails-assets, however this is not ideal because it would have to be kept up to date. A better way would be to convince the js package maintainer to change their main key. Yet, this is not guaranteed to work. Also, I have limited experience with bower configs so not sure who is right.
A naming map might solve the "foo.js" problem because when a package ends with ".js", rails-assets shows require foo.js.js
in the readme. However, this doesn't solve the css require issue because that probably changes for each package.