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 CSS styles on windows #8724

Merged
merged 3 commits into from
Oct 2, 2023
Merged

Fix CSS styles on windows #8724

merged 3 commits into from
Oct 2, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Oct 2, 2023

Changes

Fix #8720

The main fix is for this specific line:

I changed the url to an id, thinking it doesn't affect it, but I missed that it did! This PR makes url an actual URL. But I also need the id for data-vite-dev-id below, so I refactored getStylesForURL to achieve that. The rest of the changes are the refactors for it.

Testing

Don't have a Windows machine to test this, but I spotted this is the main unintended change from #8706

Docs

n/a. bug fix.

@changeset-bot
Copy link

changeset-bot bot commented Oct 2, 2023

🦋 Changeset detected

Latest commit: cde8743

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Oct 2, 2023
@alexanderniebuhr alexanderniebuhr self-requested a review October 2, 2023 14:25
Copy link
Member

@alexanderniebuhr alexanderniebuhr left a comment

Choose a reason for hiding this comment

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

I don't even know how the vite-plugin-astro-server works, but the code changes lgtm :)

@lilnasy
Copy link
Contributor

lilnasy commented Oct 2, 2023

I can reproduce the issue and confirm it's fixed with these changes.

@bluwy bluwy merged commit 455af32 into main Oct 2, 2023
13 checks passed
@bluwy bluwy deleted the fix-css-windows branch October 2, 2023 15:17
@astrobot-houston astrobot-houston mentioned this pull request Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not allowed to load local ressource with npm run dev
5 participants