I am building a dashboard with ChartJS and OpenLayers installed through NodeJS, so I install packages locally with npm. OpenLayers also must be installed locally through npm, as there is no CDN link for the latest version.
Answers to similar questions usually jump on the "NodeJS" part, stating correctly that NodeJS needs to be hosted somewhere that can run server code. But this is irrelevant to me. The packages I am using don't need to be run "live" on a server, as my application makes no use of server operations. No HTTP requests, no databases etc.
I host my projects on github and use the github pages feature to make them viewable from my portfolio. I just want my static website to be able to use locally installed packages without having to provide a CDN URL. Can I just upload the html, css and js files with all the package folders to a github repository and create a github page out of it? The packages will still work?