Ruby on Rails
Sunday, December 22, 2019
You shouldn't have files inside pack except for the bundles/packs you'll link on your html, images go in javacsripts/images, not in javascripts/packs. Just read the guide https://github.com/rails/webpacker/blob/master/docs/assets.md#link-in-your-rails-views
El dom., 22 dic. 2019 a las 15:50, fugee ohu (<fugee279@gmail.com>) escribió:
If I put in application.js require.context('../images', true) everything works fine regardless of whether I place my images folder under javascripts or under javascripts/packs If I have my image folder under packs and change it to require.context('images', true) it breaks--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/acaa913d-e589-4c10-af28-7488d2777f77%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcAc3OmGpnT50%3DXCM6gheazpiXypLWpU26ELw1QUXOzYjA%40mail.gmail.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment