執行react build 檔案

簡單說事發表於2019-02-19

1 利用create-react-app 建立專案

2 開發完專案,npm run build 後,將build 的檔案傳給別人

3接到build 包後,需要在本地安裝一個靜態伺服器,然後才可以執行專案,

步驟: a: npm install -g serve

            b: serve -s build

            c: 執行對應的localhost:5000即可


執行react build 檔案

相關文章