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
introduce support for <base> (matching <title> and <meta>) #1160
Conversation
Why wouldn’t that be possible with the webpack publicPath option or a custom template? |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code you provide looks awesome - my only concern is if that’s a common requirement or an edge case 🤔
Do you know if base target blank is vulnerable to window opener attacks?
Right now this feature would not work if inject is false - I think that should be okay.. or do you think we should also add it to the default template? |
Yeah, I understand your caution: the real cost comes from maintenance. For what it's worth, you're welcome to ping me here on github if this needs attention in the future. I'll be happy to write up a patch or field questions (i'll be doing that no matter what, this PR just affects where). It's your project though, so we'll work with whatever your final decision is. Either way, thanks for actively maintaining this project. |
I agree. The |
this will let users inject a
base
tag in a manner similar to the current implementation fortitle
andmeta
.It also includes docs along with two new tests (
adds a base tag with attributes
andadds a base tag short syntax
) for the introduced features.I didn't see a contributing guide, so if you have any other questions or requests just let me know.