Skip to content

Commit bc63a71

Browse files
authored
refactor: remove publicPath log (#3218)
1 parent 1af39a9 commit bc63a71

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

lib/Server.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -700,20 +700,6 @@ class Server {
700700
);
701701
}
702702

703-
if (
704-
this.options.devMiddleware &&
705-
typeof this.options.devMiddleware.publicPath !== 'undefined'
706-
) {
707-
this.logger.info(
708-
`webpack output is served from '${colors.info(
709-
useColor,
710-
this.options.devMiddleware.publicPath === 'auto'
711-
? '/'
712-
: this.options.devMiddleware.publicPath
713-
)}' URL`
714-
);
715-
}
716-
717703
if (this.options.static && this.options.static.length > 0) {
718704
this.logger.info(
719705
`Content not from webpack is served from '${colors.info(

test/cli/cli.test.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -460,32 +460,12 @@ describe('CLI', () => {
460460
.catch(done);
461461
});
462462

463-
it('should log public path', (done) => {
464-
testBin(
465-
'--no-color',
466-
path.resolve(__dirname, '../fixtures/dev-public-path/webpack.config.js')
467-
)
468-
.then((output) => {
469-
expect(output.exitCode).toEqual(0);
470-
done();
471-
})
472-
.catch((err) => {
473-
// for windows
474-
expect(err.stderr).toContain(
475-
"webpack output is served from '/foo/bar' URL"
476-
);
477-
expect(err.stdout).toContain('main.js');
478-
done();
479-
});
480-
});
481-
482463
it('should log static', (done) => {
483464
testBin(
484465
'--no-color',
485466
path.resolve(__dirname, '../fixtures/static/webpack.config.js')
486467
)
487468
.then((output) => {
488-
console.log(output);
489469
expect(output.exitCode).toEqual(0);
490470
done();
491471
})

0 commit comments

Comments
 (0)