Last active
March 2, 2022 19:06
-
-
Save Moizsohail/47fb9dc01b1d0cd9a5c47b3d17a1d495 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
build() { | |
echo 'building react' | |
export INLINE_RUNTIME_CHUNK=false | |
export GENERATE_SOURCEMAP=false | |
react-scripts build | |
rm -rf dist/* | |
mkdir -p dist | |
cp -r build/* dist | |
} | |
build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment