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

Hotfix: Tailwind is not included in production builds #3

Merged
merged 1 commit into from Apr 6, 2022

Conversation

Mafrans
Copy link
Owner

@Mafrans Mafrans commented Mar 14, 2022

Until importing preprocessed CSS documents as URLs is supported in Vite (see vitejs/vite#5796) it is not possible for us to directly define which documents should be loaded into web components. An alternative is to load a CSS document directly into the head and simply clone it into each web component.

Fixes #2, also probably acts as a better solution than #1.

@Mafrans Mafrans changed the title Fix: Temporary solution to #2 Hotfix: Tailwind is not included in production builds Mar 14, 2022
@Mafrans
Copy link
Owner Author

Mafrans commented Mar 14, 2022

@txfs19260817 as you are the original author of #1 I'd like to hear your opinion on this solution.

@Mafrans
Copy link
Owner Author

Mafrans commented Apr 6, 2022

vitejs/vite#5796 has been merged and the decision not to support importing preprocessed CSS documents has been made, this solution will therefore be merged until there is support for a more elegant one.

@Mafrans Mafrans merged commit f445e49 into master Apr 6, 2022
@Mafrans Mafrans mentioned this pull request Apr 6, 2022
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.

Tailwind is not included in production builds
1 participant