Skip to content

Instantly share code, notes, and snippets.

@gabrielizalo
Created November 5, 2019 14:05
Show Gist options
  • Save gabrielizalo/ff21200d3de9b71582c1f033dcf8705b to your computer and use it in GitHub Desktop.
Save gabrielizalo/ff21200d3de9b71582c1f033dcf8705b to your computer and use it in GitHub Desktop.
React App - Build Version - Part 2
"build":
"react-scripts build &&
REACTBUILDVERSION=$(date +%Y-%m-%d)-$(date +%T) &&
sed -i -- 's/%REACTBUILDVERSION%/'$REACTBUILDVERSION'/g' build/index.html &&
echo React Build Version = $REACTBUILDVERSION",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment