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

Feature/Add proper stylesheet imports #4

Merged
merged 4 commits into from
May 15, 2023
Merged

Conversation

Mafrans
Copy link
Owner

@Mafrans Mafrans commented Aug 31, 2022

As of Vite v3 you can now import postprocessed stylesheets as urls, this means we no longer need to use a hacky solution to import proper <link> tags and include the global styles.

@Mafrans
Copy link
Owner Author

Mafrans commented Aug 31, 2022

This solution causes the same issues mentioned in #2 as rollup appears to skip bundling of the css file unless it's imported directly. Letting this stay open until a fix has been found.

@Mafrans
Copy link
Owner Author

Mafrans commented Aug 31, 2022

This is due to a bug in Vite detailed in vitejs/vite#2522, this PR stays open until it has been resolved.

@Mafrans
Copy link
Owner Author

Mafrans commented May 15, 2023

Vite now has support for the ?inline import flag, which includes the compiled css document as a string. This can be merged and closed.

@Mafrans Mafrans merged commit aafad49 into master May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant