We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b58b42 commit e8400b2Copy full SHA for e8400b2
bin/webpack-dev-server.js
@@ -22,6 +22,8 @@ var optimist = require("optimist")
22
23
.boolean("lazy").describe("lazy")
24
25
+ .boolean("stdin").describe("stdin", "close when stdin ends")
26
+
27
.boolean("info").describe("info").default("info", true)
28
29
.boolean("quiet").describe("quiet")
@@ -79,6 +81,14 @@ if(!options.filename)
79
81
80
82
if(!options.watchOptions)
83
options.watchOptions = firstWpOpt.watchOptions;
84
85
+if(argv["stdin"]) {
86
+ process.stdin.on('end', function() {
87
+ process.exit(0);
88
+ });
89
+ process.stdin.resume();
90
+}
91
92
if(!options.watchDelay && !options.watchOptions) // TODO remove in next major version
93
options.watchDelay = firstWpOpt.watchDelay;
94
0 commit comments