Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by adparadox on Thursday June 15, 2023 @02:28PM
(#36344637)
Not requiring NPM was one of my original requirements for anything on this list. All of these libraries should be available from HTML directly -- let me know or make a PR if that isn't the case.
[ Parent
| on HN ]
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by vxNsr on Thursday June 15, 2023 @02:44PM
(#36344858)
Maybe you can add that somewhere in subtitle somehow? as it's not immediately clear
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by adparadox on Thursday June 15, 2023 @03:43PM
(#36345475)
Good idea! I'll add it to the subtitle.
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by smusamashah on Thursday June 15, 2023 @05:08PM
(#36346527)
I looked at the first one on the list "lit" and the very first thing it says on github is to install via npm.
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by spankalee on Thursday June 15, 2023 @06:58PM
(#36347956)
That's because the vast majority of the JS ecosystem installs libraries via npm.
We can't really put all of the different ways to use Lit on the front page, but we document how to use Lit from a CDN right on the getting started page: https://lit.dev/docs/getting-started/#use-bundles
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav...
by hluska on Thursday June 15, 2023 @07:00PM
(#36347990)
If you read the documentation, you’ll find these links:
Core - https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js
All - https://cdn.jsdelivr.net/gh/lit/dist@2/all/lit-all.min.js