Skip to content

[Bug]: printUrls doesn't have any effect when htmlPlugin is disabled #3731

@ainursharaev

Description

@ainursharaev

Version

System:
OS: macOS 15.0.1
CPU: (10) arm64 Apple M1 Pro
Memory: 3.47 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Brave Browser: 126.1.67.123
Chrome: 129.0.6668.101
Firefox: 131.0.2
Safari: 18.0.1
npmPackages:
@rsbuild/core: ^1.0.14 => 1.0.14
@rsbuild/plugin-node-polyfill: ^1.0.4 => 1.0.4,
@rsbuild/plugin-react: ^1.0.4 => 1.0.4
@rsbuild/plugin-sass: ^1.0.3 => 1.0.3
@rsbuild/plugin-svgr: ^1.0.4 => 1.0.4

Details

Hi there! I think one fix applied on printServerURLs broke one use case that I have – I don't output any HTML files as well, because the assets are just served from php server, but I still want to somehow print the nice urls in the console. Before it was possible, but now because of the additional routes check this functionality is not usable in my case. Perhaps you could advice how to do url printing in other way?

Reproduce link

Reproduce Steps

  1. set htmlPlugin to false
  2. see that urls logs are not output, even with custom function in printUrls

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions