-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat / Render favicons dynamically #126
Conversation
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.
Great work Mike!
@@ -80,7 +89,7 @@ export default ({ mode, command }: ConfigEnv): UserConfigExport => { | |||
minify: true, | |||
inject: { | |||
tags: [getGoogleVerificationTag(env), fontTags, getGtmTags(env)].flat(), | |||
data: app, | |||
data: { ...app, favicons }, |
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.
Not sure, but maybe we want to add favicons
to app
in the OTTConfig typing?
Edit: I think we don't, but still want to mention it. :)
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.
I think these 2 are conceptually two separate things. Also adding typing for the favicons (a lengthy string), doesn't feel right to me. I keep it as is ;)
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.
Very nice @langemike!
This renders the favicon tags dynamically. This will make it less prone to errors.
Based on PR feedback: jwplayer#450 (comment)