Skip to content
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

Which files need to be hosted on cdnjs? #132

Closed
dakshshah96 opened this issue Apr 26, 2017 · 7 comments
Closed

Which files need to be hosted on cdnjs? #132

dakshshah96 opened this issue Apr 26, 2017 · 7 comments

Comments

@dakshshah96
Copy link

Hi, I'd like to host your library, isomorphic-fetch on cdnjs — It is one of the most famous free and public web front-end CDN services which is used by ~1,143,000 websites worldwide.

There are three files which seem relevant to me in your repository:

fetch-bower.js
fetch-npm-browserify.js
fetch-npm-node.js

Which files out of the ones listed above will work in a browser and let developers use your library directly? Also, please let me know if there are any other files that should be hosted.

@matthew-andrews
Copy link
Owner

I think none of them will work on their own in the browser… It needs to be compiled via browserify / babel etc to work in the browser.

@matthew-andrews
Copy link
Owner

(Also thank you for your kind message and interest)

@dakshshah96
Copy link
Author

@matthew-andrews Thanks for letting me know! 😄

@PeterDaveHello
Copy link

Hi @matthew-andrews, is it possible to provide it in the repository? Since one of your users is asking CDNJS to host it :)

@matthew-andrews
Copy link
Owner

I don't really like to commit built files into repositories… Could you pull the file from a web service that npm install's and webpack's the module instead? e.g.
https://www.ft.com/__origami/service/build/v2/bundles/js?modules=isomorphic-fetch@^2.2.1

@matthew-andrews
Copy link
Owner

or this one:-
https://wzrd.in/bundle/isomorphic-fetch

@PeterDaveHello
Copy link

hmmmm ... we don't support that yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants