File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,12 @@ For more information, see https://webpack.js.org/api/cli/.`);
71
71
options = require ( "./utils/convert-argv" ) ( argv ) ;
72
72
} catch ( err ) {
73
73
if ( err . name !== "ValidationError" ) {
74
- throw err ;
74
+ console . error ( "\n\u001b[1m\u001b[31mWebpack not found, please install webpack" ) ;
75
+ console . error (
76
+ "\u001b[1m\u001b[31mAlternatively, run 'webpack(-cli) --help' for usage info.\u001b[39m\u001b[22m\n"
77
+ ) ;
78
+ process . exitCode = 1 ;
79
+ return ;
75
80
}
76
81
77
82
const stack = ErrorHelpers . cleanUpWebpackOptions ( err . stack , err . message ) ;
@@ -93,7 +98,7 @@ For more information, see https://webpack.js.org/api/cli/.`);
93
98
*/
94
99
const stdout = argv . silent
95
100
? {
96
- write : ( ) => { }
101
+ write : ( ) => { }
97
102
} // eslint-disable-line
98
103
: process . stdout ;
99
104
You can’t perform that action at this time.
0 commit comments