How to deploy a project which has npm packages on GitHub pages? #54049
-
Select Topic AreaQuestion BodyI have a project built with next.js and it has a few npm packages. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As you can see in https://github.com/orgs/community/discussions/categories/pages title bar : Conversations related to GitHub Pages, a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub and publishes a website. So You Can not add packages in Github Pages by add package or something like this . but i use some ways to add packages and use it in Pages . As a example . if you installed Bootstrap V5.1 npm package in your files . you can easily use this link to find Bootstrap V5.1 cnd link . and link it in your HTML link : I hope it is helpful for you ! |
Beta Was this translation helpful? Give feedback.
As you can see in https://github.com/orgs/community/discussions/categories/pages title bar :
Conversations related to GitHub Pages, a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub and publishes a website.
So You Can not add packages in Github Pages by add package or something like this .
but i use some ways to add packages and use it in Pages .
you can easily Link CDN link of your package you need in HTML . then you can see your View Deployment Page will work carefully .
As a example . if you installed Bootstrap V5.1 npm package in your files . you can easily use this link to find Bootstrap V5.1 cnd link . and link it in your H…