ember-twiddle
ember-twiddle copied to clipboard
`{{content-for}}` hook of addons is not invoked
I've been trying the support for addons and worked like a charm except for this little detail.
Example with ember-power-select: https://ember-twiddle.com/b076c42b8529f3f95165dca5c82abef3/23f8fbca074bb26605b35448dd909453edf8b7f0
Apparently the content-for hook of the addon is not invoked, and therefore the destination div for ember-wormhole is not attached to the page automatically.
@cibernox correct. This is because we basically only export addon js + css. You can view the addon builder code at https://github.com/joostdevries/twiddle-backend/blob/master/addon-builder/ember-cli-build.js.
A possible solution might be to modify the build process so that it outputs the {{content-for}} into separate html files which we can then add to addon.json and include into the HTML.
Do you have time to draft up a PR?
I'll try to understand the build pipeline and see what I can do, but I don't have an ETA because I'm moving next week.
📦
📦 📦
📦 📦 📦 📦
📦 📦 📦 📦 📦 📦
🏡 🚚 📦 📦 📦 📦 📦 📦 📦 📦