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

Scoped nested css does not emit properly after vite build #354

Closed
ycmjason opened this issue Jun 5, 2020 · 1 comment
Closed

Scoped nested css does not emit properly after vite build #354

ycmjason opened this issue Jun 5, 2020 · 1 comment

Comments

@ycmjason
Copy link
Contributor

ycmjason commented Jun 5, 2020

Here is the minimal reproduction of the issue.

https://github.com/ycmjason/vite-issue-reproduction-scoped-nested-css

I've included the dist in the repo.

This is the css emitted (formatted):

.fine[data-v-b9dfe1ae] {
  color: green;
}
.fine[data-v-b9dfe1ae]__not {
  color: red;
}

The scope id is placed incorrectly as shown above.

Thanks for the amazing tool. Vite made development much less painful.

@ycmjason
Copy link
Contributor Author

ycmjason commented Jun 5, 2020

Please note that the correct CSS is emitted in dev mode.

@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.
Projects
None yet
Development

No branches or pull requests

1 participant