File tree Expand file tree Collapse file tree 6 files changed +182
-240
lines changed Expand file tree Collapse file tree 6 files changed +182
-240
lines changed Original file line number Diff line number Diff line change @@ -198,29 +198,6 @@ if (openBrowser('http://localhost:3000')) {
198198}
199199```
200200
201- #### ` prompt(message: string, isYesDefault: boolean): Promise<boolean> `
202-
203- This function displays a console prompt to the user.
204-
205- By convention, "no" should be the conservative choice.<br >
206- If you mistype the answer, we'll always take it as a "no".<br >
207- You can control the behavior on ` <Enter> ` with ` isYesDefault ` .
208-
209- ``` js
210- var prompt = require (' react-dev-utils/prompt' );
211-
212- prompt (
213- ' Are you sure you want to eat all the candy?' ,
214- /* isYesDefault */ false
215- ).then (shouldEat => {
216- if (shouldEat) {
217- console .log (' You have successfully consumed all the candy.' );
218- } else {
219- console .log (' Phew, candy is still available!' );
220- }
221- });
222- ```
223-
224201#### ` webpackHotDevClient.js `
225202
226203This is an alternative client for [ WebpackDevServer] ( https://github.com/webpack/webpack-dev-server ) that shows a syntax error overlay.
Original file line number Diff line number Diff line change 2222 " launchEditor.js" ,
2323 " openBrowser.js" ,
2424 " openChrome.applescript" ,
25- " prompt.js" ,
2625 " WatchMissingNodeModulesPlugin.js" ,
2726 " webpackHotDevClient.js"
2827 ],
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4747 "fs-extra" : " 0.30.0" ,
4848 "html-webpack-plugin" : " 2.28.0" ,
4949 "http-proxy-middleware" : " 0.17.3" ,
50+ "inquirer" : " 3.0.6" ,
5051 "jest" : " 18.1.0" ,
5152 "object-assign" : " 4.1.1" ,
5253 "postcss-loader" : " 1.3.3" ,
You can’t perform that action at this time.
0 commit comments