[openstreetmap/openstreetmap-website] include iD as npm package (PR #6565)
Tom Hughes
notifications at github.com
Tue Nov 25 19:04:58 UTC 2025
tomhughes left a comment (openstreetmap/openstreetmap-website#6565)
The alternative to trying to edit the CSS is to put the iD images on the asset search path by editing `config/initializers/assets.rb` to add this at the end:
```ruby
Rails.application.config.assets.paths << Rails.root.join("node_modules/@openstreetmap/id/dist")
```
Then sprockets will manage to find them from the paths in the iD CSS and rewrite the URLs automatically.
It's a bit nasty because they're on the path for everything, but probably more robust than trying to do non-syntax aware text replacement on the CSS data.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6565#issuecomment-3577148044
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6565/c3577148044 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251125/00144c00/attachment.htm>
More information about the rails-dev
mailing list