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

vite build --watch doesn't build scoped css from the same component #6633

Closed
7 tasks done
Dagge1 opened this issue Jan 25, 2022 · 2 comments
Closed
7 tasks done

vite build --watch doesn't build scoped css from the same component #6633

Dagge1 opened this issue Jan 25, 2022 · 2 comments

Comments

@Dagge1
Copy link

Dagge1 commented Jan 25, 2022

Describe the bug

I use Vite V2.7.2 and this issue is still present. When building and watching changes with the command vite build --watch it ignores scoped css in the same component. After I restart with vite build --watchit uses scoped css again, but after any change in the template part of the component, it will ignore scoped css style. If I change something in the style part of the component it will use scoped css again. Additionally it doesn't show changes without refreshing the browser screen when using vite build --watch command.

Reproduction

no

System Info

Windows 10, Chrome

Used Package Manager

npm

Logs

No response

Validations

@davermont
Copy link

I’m running into this also. It looks like —watch is building the component with a new data-v value, but not generating a new css file so the mismatched data-v attributes result in the scoped css styles not getting applied.

@github-actions
Copy link

Hello @Dagge1. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2022
This issue was closed.
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

3 participants