Using Firefox with create-react-app

If you are using create-react-app to build your ReactJS applications (who isn't anyways?!), you may be wondering how to change the default browser when inside your development environment. As you might have noticed, by default, create-react-app is opinionated and tries to first launch the default browser or else Chrome, in that order.

But what if, you're like me, and prefer Firefox Developer Edition (or any other browser that is not as evil as Chrome)? Luckily, the core developers behind create-react-app have recently added support through the use of the environmental variable BROWSER.

My personal preference is to use a .env.development file in the root of the ReactJS project and embed the variable as follows:

Post a Comment