-
Notifications
You must be signed in to change notification settings - Fork 14
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
CDN #22
Comments
@Zenahr Hi, been wanting to explore this but haven't gotten around to it. You could use unpkg, which would provide unminified UMD build (2.9k): Let me see if I can provider something better in the near future. |
Going to reopen this as a reminder to complete this task - I've been meaning to do this for some time. |
Found my way here as well since I was hoping to use the library but am also in a more barebones environment without access to NPM. |
@marcthayer Hi, yeah - haven't worked on this, but I think the unpkg works in a script tag? https://unpkg.com/[email protected]/dist/browser/lunarphase-js..js |
@marcthayer Oh, the version updated as of 2x you would target:
And corresponding maps should be there as well, for example with IIFE: Does that work for you? |
Usage with esm.sh: import { Moon } from "https://esm.sh/lunarphase-js";
Moon.lunarAge(); |
Any option to use the library via CDN or as a minified JS file? (in other words: non-NPM setups)
The text was updated successfully, but these errors were encountered: