Hi there. I’ve run into quite a roadblock with vendored assets, and I’d like to propose more facilities for handling them than is present in this PR. That PR directly addresses vendor assets in a single app, but what about assets that need to be shared across multiple apps?
> tree -L 1 apps/ apps/ ├── admin ├── auth └── web 3 directories, 0 files
In this situation, I want to be able to use the Argon Bootstrap theme in each of those apps. I know that I can build a gem like @davydovanton’s hanami-bootstrap but I believe I should also be able to “plop” these files somewhere in my repo and include them while using the
CDN mode and
Short of just putting these on a my own CDN, I’m curious what the community thinks about:
- not deleting existing files inside
public/during asset precompilation
- adding a
/then it translates to the root of
public/. This would escape the
apptrap I’ve been running into.
Thoughts? I’m not necessarily proposing all of those points, just enumerating what’s in my head.
In one of the issues on Github, I saw that @jodosha will modify paths in vendor assets, but IMO, as soon as you do that, it’s no longer a truly “vendored” asset, as I’ve taken on the burden to maintain those modifications when upgrading to new versions.
Thanks for your input!