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

SFC styles are on top of bundled styles #52

Closed
sibbng opened this issue May 5, 2020 · 3 comments
Closed

SFC styles are on top of bundled styles #52

sibbng opened this issue May 5, 2020 · 3 comments

Comments

@sibbng
Copy link
Contributor

sibbng commented May 5, 2020

I'm using Vite with Postcss and Tailwind. After bundling my vite app, styles defined in SFCs are prepend to bundled styles. This is causing tailwind's reset classes to take higher priority than component's styles. If I mark my styles scoped they are takes higher priority but of course scoped styles are not for that.

@underfin
Copy link
Member

underfin commented May 6, 2020

Can you privider a repo for this.

@yyx990803
Copy link
Member

Closing (stale)

@sibbng
Copy link
Contributor Author

sibbng commented Jul 18, 2020

This issue is happens when style is defined in App.vue.

Here it is a tailwind repro sibbng/issue-52@43b9792
Cloned from https://github.com/posva/vite-tailwind-starter

Actually same issue happens on create-vite-app too. After build, styles defined in App.vue are comes before the styles in index.css

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants