Skip to content

fix(vite): omit css ?raw from head when in dev mode#27940

Merged
danielroe merged 1 commit intomainfrom
fix/omit-raw-css-links
Jul 1, 2024
Merged

fix(vite): omit css ?raw from head when in dev mode#27940
danielroe merged 1 commit intomainfrom
fix/omit-raw-css-links

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

resolves #27753

📚 Description

We use a vite-node hook to generate a CSS manifest on demand in dev mode - to reduce flickering.

This is a quick fix to ensure we aren't rendering links to ?raw css files in the head, as vite won't be able to parse them when fetching from the client.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Imported css file with ?raw should not be resolved

1 participant