Move error overlay middleware (#2216)

This commit is contained in:
Dan Abramov
2017-05-18 21:01:26 +01:00
committed by GitHub
parent 5f93bc4d55
commit 55afd862c8
5 changed files with 33 additions and 11 deletions

View File

@@ -236,6 +236,10 @@ var getProcessForPort = require('react-dev-utils/getProcessForPort');
getProcessForPort(3000);
```
#### `launchEditor(fileName: string, lineNumber: number): void`
On macOS, tries to find a known running editor process and opens the file in it. It can also be explicitly configured by `REACT_EDITOR`, `VISUAL`, or `EDITOR` environment variables. For example, you can put `REACT_EDITOR=atom` in your `.env.local` file, and Create React App will respect that.
#### `openBrowser(url: string): boolean`
Attempts to open the browser with a given URL.<br>