How to get webpack-dev-server to open Brave on mac

357 views Asked by At

How can I get webpack to open the Brave browser when I run webpack-dev-server on a Mac?

For example this is how i run webpack and open a google chrome browser:

webpack-dev-server --env.mode=development --open "Google Chrome"
1

There are 1 answers

1
Joe Gasewicz On

On Mac you can get webpack to open Brave like this:

In your package.json:

// package.json
...

"scripts": {
    "start": "webpack-dev-server --env.mode=development --open \"Brave Browser\"",
  },

Or in your webpack config:


devServer: {
    open: "Brave Browser",
}