webpacker images folder

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 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

Actually have all my js files inside packs for now Where should I put those Note: original question was about images

I’ve answered another email, everything you are asking seems to be on the documentation:
https://github.com/rails/webpacker#paths

https://github.com/rails/webpacker/blob/master/docs/assets.md#link-in-your-rails-views

https://github.com/rails/webpacker/blob/master/docs/css.md