-
Notifications
You must be signed in to change notification settings - Fork 5
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
Provide ready to use file for browsers #30
Comments
I'm a bit hesitant to do this. The problem of such monolithic builds is that they can become really big. Currently, the package is 93.1 kB in size, while adding such a Going the ES Modules route might be a better solution, so I'm open to that (once support stabilizes a bit). |
Thanks for replying to this. I'm not knowledgeable about any of these things (npm, node, js, server side packaging) - so I'll leave it to your experience. That said, and if I understand correctly that the package size is related to the size of releases, |
Indeed, placing this in a different repo, and exposing via something like GH Pages definitely makes sense. I don't have the bandwidth to take this up myself, but perhaps someone else might if you're willing to place a bounty on this via the Comunica Association. (That being said, I think the easiest solution would be to just write your JS as an npm module with a dependency on this package, and pack it up for the browser via webpack, similar to how we do it in https://github.com/comunica/jQuery-Widget.js) |
First and foremost, thank you, Ruben, for publishing such a useful library. |
Very nice work @TakashiSasaki! |
Currently, the creation of a browser-usable script requires npm, typescript, and compiler (e.g. browserify) to generate a standalone file ready for usage in the browser. By providing a
dist
version in a single-file, the library can be used in any webpage without backend requirements. This process is trivial (e.g. add commands to build process to generate file and put indist
folder) and would save time (e.g. for every single download and compilation of file for browsers).P.S. Thanks for this work : )
The text was updated successfully, but these errors were encountered: