Skip to content

How to deploy a project which has npm packages on GitHub pages? #54049

Answered by YasinDehfuli
f-mohrechi asked this question in Pages
Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by f-mohrechi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question
2 participants