You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an index.scss files that imports other .scss files with @use.
When i run vite with HMR and it's watcher, a change inside an imported .scss file is detected, but the css is not being correctly injected.
When i edit the index.scss directly, the change is injected instantly.
When i edit an imported.scss file and then save the index.scss (without changing it), the css is injected correctly aswell.
When i just run vite build, the css is built correctly.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
I have an index.scss files that imports other .scss files with
@use
.When i run vite with HMR and it's watcher, a change inside an imported .scss file is detected, but the css is not being correctly injected.
When i edit the index.scss directly, the change is injected instantly.
When i edit an imported.scss file and then save the index.scss (without changing it), the css is injected correctly aswell.
When i just run vite build, the css is built correctly.
Reproduction
https://github.com/mar0yan/vite-build-scss-issue-demo
Steps to reproduce
Clone repo
yarn install
yarn dev
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: