I’ve configured webpacker to be able to process ERBs (
bundle exec rails webpacker:install:erb
) because I need paths generated by Sprockets'
at build time so that I get properly generated asset URLs.
The ERB integration works with the simple example that you get after installing ERB/Webpacker integration, but I’m wondering how to have access to
. From what I’ve found so far, it doesn’t appear to be possible, https://github.com/rails/webpacker/issues/284.
Does anyone know if it's possible? In the meantime, I will keep digging 😉