美文网首页
react-app-rewired 修改 react 项目默认端

react-app-rewired 修改 react 项目默认端

作者: 光剑书架上的书 | 来源:发表于2022-04-12 04:03 被阅读0次

package.json

设置: "dev": "PORT=8888 react-app-rewired start"

如下:

{
  "name": "arco-design-pro",
  "version": "1.0.0",
  "description": "Arco Design Pro",
  "scripts": {
    "start": "react-app-rewired start",
    "dev": "PORT=8888 react-app-rewired start",
    "build": "react-app-rewired build",
    "eject": "react-scripts eject",
    "eslint": "eslint src/ --ext .ts,.tsx,.js,.jsx --fix --cache",
    "stylelint": "stylelint 'src/**/*.less' 'src/**/*.css' --fix --cache",
    "pre-commit": "pretty-quick --staged && npm run eslint && npm run stylelint",
    "prepare": "husky install && husky add .husky/pre-commit 'npm run pre-commit'"
  }
}

相关文章

网友评论

      本文标题:react-app-rewired 修改 react 项目默认端

      本文链接:https://www.haomeiwen.com/subject/spkgsrtx.html