mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-25 21:55:42 +08:00
Move error overlay middleware (#2216)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user