Skip to content

Commit b2001d9

Browse files
committed
verbose.
1 parent dc38af2 commit b2001d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ function puts(error, stdout, stderr) {
44
if (error) {
55
console.log('Error: ', error, stderr);
66
}
7-
if (this.options.verbose) {
8-
console.log(stdout);
9-
}
7+
console.log(stdout);
108
}
119

1210
function validateInput(options) {
@@ -35,13 +33,16 @@ function WebpackShellPlugin(options) {
3533
options.onBuildEnd = defaultOptions.onBuildEnd;
3634
}
3735

38-
options = validateInput(options);
39-
40-
4136
if (!options.dev) {
4237
options.dev = defaultOptions.dev;
4338
}
4439

40+
if (!options.verbose) {
41+
options.verbose = defaultOptions.verbose;
42+
}
43+
44+
options = validateInput(options);
45+
4546
this.options = options;
4647

4748
}
@@ -79,4 +80,3 @@ WebpackShellPlugin.prototype.apply = function (compiler) {
7980
};
8081

8182
module.exports = WebpackShellPlugin;
82-

0 commit comments

Comments
 (0)