From 89db537e463f01af16c67dd854cd7875370f3d69 Mon Sep 17 00:00:00 2001 From: ylemkimon Date: Thu, 24 Sep 2020 07:34:01 +0900 Subject: [PATCH] fix: contentBase (static) logging --- lib/utils/status.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/utils/status.js b/lib/utils/status.js index 9dfb9a6525..b6970d3600 100644 --- a/lib/utils/status.js +++ b/lib/utils/status.js @@ -5,10 +5,6 @@ const runOpen = require('./runOpen'); // TODO: don't emit logs when webpack-dev-server is used via Node.js API function status(uri, options, logger, useColor) { - const contentBase = Array.isArray(options.contentBase) - ? options.contentBase.join(', ') - : options.contentBase; - if (options.socket) { logger.info( `Listening to socket at ${colors.info(useColor, options.socket)}` @@ -21,11 +17,11 @@ function status(uri, options, logger, useColor) { `webpack output is served from ${colors.info(useColor, options.publicPath)}` ); - if (contentBase) { + if (options.static && options.static.length) { logger.info( `Content not from webpack is served from ${colors.info( useColor, - contentBase + options.static.map((staticOption) => staticOption.directory).join(', ') )}` ); }