How to deploy a website built and ran with parcel in terminal just by clicking on the Github page link?

  Kiến thức lập trình

I’ve built a website with ParcelJs, and I used parcel *.html to deploy it in terminal while working on it. Now I synchronize all the files on my repository on GitHub and want to use GitHub Page to deploy it, but it didn’t work.

Could you please help me with this? I’m not sure what should be done exactly.

I’ve tried in JSON:
"scripts": { "start": "parcel ./ohayo.html", "predeploy": "rm -rf dist && parcel build ./ohayo.html --public-url REPO URL", "deploy": "gh-pages -d dist" },

and entered npm run deploy, but it showed “Build failed”. Also when I clicked on my github page link, a blank website was opened.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT