Open jasonfb opened 1 year ago
yes my ‘strategy’ (which isn’t much a of a strategy) was using old-style Sprockets for Bootstrap + Font awesome here, but using JSBundling for the javascript. perhaps that’s the problem. I thought that it had to be done this way if Bootstrap was also loaded through Sprockets. Let me experiment with doing it out of Sprockets and get back to this.
In the "Install with webpack" section could you please clarify the sentence on the README "Next import font in your app/javascript/packs/application.js. You can find more about import in FA pages."
(Please note that I am actually attempting to install this with JSBundling, not webpacker)
Alternatively, please add a section for "Install with JSBundling" instead of webpack.
I searched the (very large and general) FA docs and can find nothing that seems to fit for Rails. Specifically, if you follow the README instructions for a JSBundling app, I get this result:
my
app/assets/stylesheets/application.scss
has this:The readme says "Next import font in your app/javascript/packs/application.js" (note that in Rails 7 the location is now
app/javascript/application.js
). This is the part that I'm stuck on. I tried various ways to import font awesome here but I couldn't get any to work.Can you please clarify the documentation here?
I would suggest removing the link to the general docs because the link only goes to the general docs home page and the information to solve this setup step is not easily identifiable or accessible if you don't already know it.