mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 17:35:42 +08:00
Support node scripts in BROWSER (#1590)
* Support node scripts in BROWSER Modify OpenBrowser.js to run node scripts specified with the BROWSER environment variable . If the value of the BROWSER environment variable ends with '.js' a child process is spawned to execute the script with node.js. Any arguments passed to npm start are also passed to this script, as well as the url where the app is served. The command executed in the child process is: node <pathToScript> [OPTIONS] <url> Update User Guide. * Tweak code style * Pin dep * Comment out 0.10 docs
This commit is contained in:
committed by
Dan Abramov
parent
d6dbfc0353
commit
8f028ae4b5
@@ -32,6 +32,7 @@
|
||||
"anser": "1.1.0",
|
||||
"babel-code-frame": "6.20.0",
|
||||
"chalk": "1.1.3",
|
||||
"cross-spawn": "4.0.2",
|
||||
"escape-string-regexp": "1.0.5",
|
||||
"filesize": "3.3.0",
|
||||
"gzip-size": "3.0.0",
|
||||
|
||||
Reference in New Issue
Block a user