Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Hopefully, can leave the title unset #3700

Closed
iwen-conf opened this issue Oct 12, 2024 · 2 comments · Fixed by #3714
Closed

[Feature]: Hopefully, can leave the title unset #3700

iwen-conf opened this issue Oct 12, 2024 · 2 comments · Fixed by #3714

Comments

@iwen-conf
Copy link

What problem does this feature solve?

When using the Title and Meta Provider of solidjs, I found that the Title was added, but it did not take effect because rsbuild automatically added the title. You must use on Mount to remove the title first, but this will cause additional overhead. I hope it can be omitted in subsequent versions. title
Image

What does the proposed API look like?

The website name can be set dynamically

@iwen-conf
Copy link
Author

I don't want to use extra DOM manipulation to get rid of automatically added titles. So I want to be able to leave the title out, that is, not add a title tag. I have tried to set an empty string or undefined in rsbuild.config.ts

@chenjiahan
Copy link
Member

Rsbuild will support unsetting the title tag in the next release:

export default {
  html: {
    title: '',
  },
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants