Skip to content

Commit

Permalink
Merge c4b688f into a0d09df
Browse files Browse the repository at this point in the history
  • Loading branch information
joykuotw committed Jun 7, 2021
2 parents a0d09df + c4b688f commit 6feecea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/runWithVars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export REACT_APP_TITLE=$npm_package_title
# Copy web-vitals polyfill script from node_modules/web-vitals/dist/polyfill.js to public/index.html
SCRIPT=`cat node_modules/web-vitals/dist/polyfill.js`
SCRIPT=$(echo "$SCRIPT" | sed -e 's/&/\\\&/g' )
sed -i "" "s#<script id=\"web-vitals\">#<script id=\"web-vitals\">$SCRIPT#" public/index.html
sed -i "" "s#<script id=\"web-vitals\">.*</script>#<script id=\"web-vitals\">$SCRIPT</script>#" public/index.html

eval $@
set +x;
Expand Down

0 comments on commit 6feecea

Please sign in to comment.