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

Support de-deduping head tags by setting key #3170

Merged
merged 6 commits into from Oct 31, 2017

Conversation

liweinan0423
Copy link
Contributor

Fixes #3169

@timneutkens
Copy link
Member

For reference #668 was my initial implementation. Will work on this sometime soon. Thanks for the PR with tests @liweinan0423 will combine the 2 👌 🙌

@timneutkens
Copy link
Member

@liweinan0423 thanks for using my solution. The test you added fails in appveyor (windows). I'm pretty sure it's related to the test and not the code being broken in this case 👍

@liweinan0423
Copy link
Contributor Author

liweinan0423 commented Oct 26, 2017

@timneutkens tests were good but the de-duping logic was wrong. I have fixed them. Also could you also delete my README texts and add your documentation, I think your docs are better. 👍

expect(html.includes('<link rel="stylesheet" href="/dup-style.css" class="next-head"/><link rel="stylesheet" href="/dup-style.css" class="next-head"/>')).toBeTruthy()
expect(html.includes('<link rel="stylesheet" href="dedupe-style.css" class="next-head"/>')).toBeTruthy()
expect(html.includes('<link rel="stylesheet" href="dedupe-style.css" class="next-head"/><link rel="stylesheet" href="dedupe-style.css" class="next-head"/>')).toBeFalsy()
expect(html).toContain('<meta charSet="iso-8859-5" class="next-head"/>')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.toContain Nice 💯

@timneutkens
Copy link
Member

@liweinan0423 feel free to copy them over 🙌

@liweinan0423
Copy link
Contributor Author

@timneutkens any plan on merging this PR into master ?

Copy link
Member

@timneutkens timneutkens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thank you very much

@timneutkens timneutkens merged commit 190853b into vercel:canary Oct 31, 2017
@timneutkens
Copy link
Member

@liweinan0423 I'll do a new canary release this weekend.

@liweinan0423 liweinan0423 deleted the dedupe-head-tags branch November 1, 2017 01:50
@lock
Copy link

lock bot commented May 10, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants