When adding the middleware, allow configuration to set key->directory pairs that would then get packaged up independently. When I want to reference one, I would add the key to the call in the view.
This also means that we would need to not do auto-configuration of the middleware, instead configuring in application.rb.
I'm working on a patch for this.
So, using my fork, it is working so far. The only change was to allow passing in a different name for the resource referenced in the script tag in the view. That name resolves to a directory on the filesystem.
Hello. I apologize for the delayed response. I am currently declaring issue bankruptcy. If this issue still applies to you please feel free to re-open and explain. Thanks :)