在开发中,我希望能够从Web上看到构建信息(git commit hash,author,last commit message等).我试过了:
npm build
剩下要做的唯一事情似乎是做npm run eject和应用https://www.npmjs.com/package/git-revision-webpack-plugin,但我真的不想弹出create-react-app.有人有任何想法吗?
npm run eject
git node.js create-react-app
create-react-app ×1
git ×1
node.js ×1