Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don’t “npm install” anything and just copy the compiled .min.js library/framework files into your “/libs” folder.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: