Skip to content

Commit 51811e2

Browse files
committed
ctco-dev: put back openBrowser, disable it in scripts
1 parent b3b43f3 commit 51811e2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/react-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aeldar/react-scripts",
3-
"version": "1.1.4-9",
3+
"version": "1.1.4-10",
44
"description": "Configuration and scripts for Create React App. Modified by @aeldar",
55
"repository": "aeldar/create-react-app",
66
"license": "MIT",

packages/react-scripts/scripts/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ choosePort(HOST, DEFAULT_PORT)
9797
clearConsole();
9898
}
9999
console.log(chalk.cyan('Starting the development server...\n'));
100-
// openBrowser(urls.localUrlForBrowser); // very annoying
100+
openBrowser(urls.localUrlForBrowser); // very annoying
101101
});
102102

103103
['SIGINT', 'SIGTERM'].forEach(function(sig) {

packages/react-scripts/scripts/utils/scripts.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
'use strict';
2+
13
module.exports = {
2-
start: 'react-scripts start',
4+
start: 'BROWSER=none react-scripts start',
35
build: 'react-scripts build',
46
test: 'react-scripts test --env=jsdom',
57
eject: 'react-scripts eject',

0 commit comments

Comments
 (0)