rails-assets
rails-assets copied to clipboard
Show all assets files available in gem on site
The old sites design used to list all available files that I could manually include. I consistently find myself missing this feature with the new site. Would be nice if you could somehow add this list into the new sites design.
Hey @westonganger ! Thanks very much for the feedback. Are you talking about where it used to show up like this, except with the correct scripts?
If so, the reason for the change was that you should only need to include what is directed by the new design. However, we recognize that many (if not most) people who make bower packages don't necessarily include this correctly. Can you give us one specific example of where you needed to look it up? That would help us improve it. Of course, PRs are definitely welcome.
Yes, the All scripts and All stylesheets sections.
This repo for example https://github.com/ceolter/ag-grid
I am guessing you build from main.js or something. This one fails because it is looking for a common js require. If I could access the dist folder then I could just correctly require the dist files that I need.
Another use case for this could be an optional theme stylesheet or something like that.
This would be great - if I want to include additional themes I have to dig around. And stylesheets don't ever seem to be included in the list.
For swagger-ui, I had to add the scss file -
// application.scss
*= require swagger-ui/dist/css/style.scss
And I gave up before I managed to get the swagger js to all work. Requiring their version of backbone made sprockets expliode - //= require swagger-ui/lib/backbone-min.js