npm install -g serve
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"serve": "serve -s build"
}
npm run build
npm run serve
上一篇:本地测试Mailgun的传入邮件