File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ yargs.options({
85
85
} ,
86
86
"content-base" : {
87
87
type : "string" ,
88
+ default : process . cwd ( ) ,
88
89
describe : "A directory or URL to serve HTML content from." ,
89
90
group : RESPONSE_GROUP
90
91
} ,
@@ -188,8 +189,6 @@ function processOptions(wpOpt) {
188
189
options . contentBase = {
189
190
target : argv [ "content-base-target" ]
190
191
} ;
191
- } else if ( ! options . contentBase ) {
192
- options . contentBase = process . cwd ( ) ;
193
192
}
194
193
195
194
if ( ! options . stats ) {
@@ -267,7 +266,7 @@ function processOptions(wpOpt) {
267
266
console . log ( "webpack result is served from " + options . publicPath ) ;
268
267
if ( Array . isArray ( options . contentBase ) )
269
268
console . log ( "content is served from " + options . contentBase . join ( ", " ) ) ;
270
- else
269
+ else if ( options . contentBase )
271
270
console . log ( "content is served from " + options . contentBase ) ;
272
271
if ( options . historyApiFallback )
273
272
console . log ( "404s will fallback to %s" , options . historyApiFallback . index || "/index.html" ) ;
You can’t perform that action at this time.
0 commit comments