React 启动时自定义端口号
修改 package.json
中 start
一行
Linux or MacOS
1 | "start": "PORT=4003 react-scripts start", |
或者1
"start": "export PORT=3006 react-scripts start"
Windows
1 | "start": "set PORT=3006 && react-scripts start" |
最近热读
扫码关注公众号,或搜索公众号“温欣爸比”
及时获取我的最新文章
