Hacker News new | ask | show | jobs
by d13 639 days ago
Don’t “npm install” anything and just copy the compiled .min.js library/framework files into your “/libs” folder.
1 comments

I tend to use git submodules to vendor into ./lib. It's rather clunky to work with, but once you know a couple commands it works pretty well. As a bonus, GitHub pages recursively clones submodules automatically. If you're using ES modules, you can host a site with no build step (ie github actions) directly from your main branch.