-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[AssetMapper] generate importmap with remote links #52304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for this issue. |
I would still like this feature, for the reasons mentioned above. |
Thank you for this suggestion. |
FWIW, I still think this feature would be great. |
Thank you for this suggestion. |
Could I get a reply or should I close this? |
Perhaps I can make a PR sometime, it does seem to be useful, at least to me. |
Description
On a related note, sometimes I want to share an example with a library developer, and would like the importmap to use the actual esm links to jsdelivr instead of the downloaded files.
Here I was trying to explain to a library developer an issue: https://datatables.net/forums/discussion/77434/typeerror-t-is-not-a-function#latest
Obviously, providing the importmap wasn't useful, as it was a bunch of hashed, downloaded files. I needed to create a jsfiddle that showed the problem, but it was tedious to look up each library.
Example
importmap('app', remote=true) generate something like this:
So that I could use
And have the link tags do the same thing. That way, the web page that's created becomes portable.
I would also use this feature to give an HTML page to a web designer, so they could focus on the CSS and HTML without the burden of installing the entire platform. Indeed, I've found it very difficult to find web designers who can install php, node, yarn and the symfony CLI in order to fix some CSS. Thus I love AssetMapper, and this feature would make for really portable pages.
The text was updated successfully, but these errors were encountered: