GitHunt
LU

luxplanjay/parcel-deploy-tutorial

parcel-deploy-tutorial

Мастерская: деплой билда от Parcel на GitHub Pages

  1. Редактируем скрипт build и добавляем --public-url /имя_репозитория/
  2. Редактрируем в package.json поле "homepage": "https://ваше_имя.github.io/имя_репозитория"
  3. Устанавливаем пакет npm install gh-pages
  4. Добавляем npm-скрипты
    1. "deploy": "gh-pages -d dist"
    2. "predeploy": "npm run build"

Languages

HTML58.0%CSS28.8%JavaScript13.2%

Contributors

Created October 7, 2020
Updated May 1, 2025
luxplanjay/parcel-deploy-tutorial | GitHunt