module-federation / practical-module-federation

75 stars 23 forks source link

Stop opening browser automatically #8

Closed zoeydawn closed 3 years ago

zoeydawn commented 3 years ago

This book is very helpful! However, I am getting a little annoyed with everything opening in the browser automatically every time I start the app. Especially when every micro-frontend opens it's own tab, so if I have five different micro-frontends, my browser automatically opens 5 blank tabs every time I start the app. In create-react-app I have the ability to set the environment variable BROWSER=none and it stops this unwanted behavior. However, that is not working for me in this app. Is there any way I can stop this?

zoeydawn commented 3 years ago

I realized that I can fix this by removing the --open from the start script.