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 (<fugee...@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+unsubscr...@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
> <https://groups.google.com/d/msgid/rubyonrails-talk/acaa913d-e589-4c10-af28-7488d2777f77%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcAc3OmGpnT50%3DXCM6gheazpiXypLWpU26ELw1QUXOzYjA%40mail.gmail.com.

Reply via email to