'npm run build' 的后续脚本

Followup script to 'npm run build'

构建我的 create-react-app 之后 npm run build?我需要 运行 另一个脚本来进一步更改最终版本。有什么方法可以简单地链接到 package.json 中的 react-scripts build 之后?我试过用';'链接它但它只是失败了。

您应该尝试使用“&&”来加入命令。 例如:

"scripts": {
    "start": "react-scripts start",
    "dev": "cd server && npm run start"
 }