An error occurred while fetching the assigned milestone of the selected merge_request.
@@ -117,15 +117,12 @@ function startBrowserProcess(browser, url, args) {
@@ -117,15 +117,12 @@ function startBrowserProcess(browser, url, args) {
Created by: FloydJohn
Hi everyone,
this PR fixes the opening of a browser of choice, selected through the BROWSER
environment variable, when starting a generated project.
After migrating to CRA v5.x the feature stopped working (see #11873, #11844, #11942, #11917, #12275).
Browsing the documentation for the open@8.4.0
package (available here) I noticed that the syntax for opening an URL using a specified browser was updated.
This PR includes two small changes:
open
package natively supports passing an array of arguments to the application, we no longer need to concatenate the arguments before the callTo test this feature I followed this test plan:
.env
file in the template project, containing for example the value BROWSER=google-chrome-stable
. The browser name could change based on OS or linux distro.npm run start
. A new tab should open in the specified browser..env
file.npm run start
: it should open on the default browser.Preferences