Sfoglia il codice sorgente

disabled auto-open browser in create-react-app

Brandon Wong 7 anni fa
parent
commit
e62ede5dbc
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      front/main.sh

+ 4 - 0
front/main.sh

@@ -24,6 +24,10 @@ yarn add react-bootstrap \
 #TODO: integrate react-router-bootstrap https://github.com/react-bootstrap/react-router-bootstrap
 
 
+# disable auto-open browser
+sed -i 's_openBrowser(_//openBrowser(_g' node_modules/react-scripts/scripts/start.js
+
+
 # add to .gitignore
 echo "" >> .gitignore
 echo "*.swp" >> .gitignore