Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 687 Bytes

README.md

File metadata and controls

51 lines (41 loc) · 687 Bytes

23rd.kokasai.com

開発

コマンド

依存関係の導入

npm install

初期プロジェクトの作成

npm create-react-app [プロジェクト名]

テストサーバーの起動

npm start

ビルド

npm build

gh-pages

gh-pagesの導入

npm install gh-pages --save-dev

package.jsonを以下のように変更

{
  ...,
  "scripts": {
    ...,
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build"
  },
  ...,
  "homepage": "https://(Githubユーザー名).github.io/(Repository名)/"
}

gh-pagesでのビルド

npm run deploy