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

Fix hot-reloading of tailwind css on Firefox #47426

Closed
wants to merge 1 commit into from

Conversation

sroussey
Copy link

Bug

Browsers do weird things. This works around the fact that if you append a stylesheet in firefox to the end of head, firefox sees it as a duplicate and ignores it. But only at the end apparently. This fix changes the MiniCssExtractPlugin to not use the default insert that just appends to the end of head.

This has another advantage: the css files remain in the same order.

NOTE: the plugin takes the function insert and does a .toString() on it, so for best compat, best to use old JS as it will not get transpiled.
fix NEXT-684 (link)

I messed up my git history and so started over, sorry for new PR @shuding

@ijjk ijjk requested a review from a team as a code owner May 4, 2023 16:19
@shuding shuding closed this Jun 25, 2023
@shuding
Copy link
Member

shuding commented Jun 25, 2023

Closing as #43396 was addressed.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants