You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just came across a case where it would be extremely helpful to have meta-data about a package available to my script. For example, when using clipboard-dom, you need to give a path to the swf file. However, I currently have to manually specify a path like: /public/component/clipboard-dom/v0.0.5/ZeroClipboard.swf
Since CSS URLs get rewritten, it seems reasonable to allow a JS file to pick up an asset URL like this. Could each registered component include something like a "path" (or at least name/version?)
The text was updated successfully, but these errors were encountered:
I would say the easiest thing to do is have require.assets = {} lookup. The builder should map the asset name somehow to a URL you could use Ajax on. Including component.json files would be way too noisy
I just came across a case where it would be extremely helpful to have meta-data about a package available to my script. For example, when using clipboard-dom, you need to give a path to the
swf
file. However, I currently have to manually specify a path like:/public/component/clipboard-dom/v0.0.5/ZeroClipboard.swf
Since CSS URLs get rewritten, it seems reasonable to allow a JS file to pick up an asset URL like this. Could each registered component include something like a "path" (or at least name/version?)
The text was updated successfully, but these errors were encountered: