Skip to content

Commit

Permalink
fix: contentBase (static) logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ylemkimon committed Nov 16, 2020
1 parent 5e90f25 commit 89db537
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/utils/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`
Expand All @@ -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(', ')
)}`
);
}
Expand Down

0 comments on commit 89db537

Please sign in to comment.