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
Vite doesn't detect changes in .css (.less, .scss, etc...) files in watch mode in Vite + Vue when file is attached with <style src="..."></style>
#16024
Closed
7 tasks done
minenwerfer opened this issue
Feb 25, 2024
· 1 comment
When using symlinks inside node_modules (to test a library on an edge application, for example), Vite is unable to detect changes in files attached in Vue SFC's <style src="..."></style>.
If however the file is imported using import './file.css' inside <script setup></script>, changes on it start to be detected again.
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.
minenwerfer
changed the title
Vite doesnt detect changes in css files in watch mode in vite + vue when css is attached with <style src="..."></style>
Vite doesn't detect changes in .css (.less, .scss, etc...) files in watch mode in Vite + Vue when file is attached with <style src="..."></style>
Feb 25, 2024
Describe the bug
When using symlinks inside node_modules (to test a library on an edge application, for example), Vite is unable to detect changes in files attached in Vue SFC's <style src="..."></style>.
If however the file is imported using
import './file.css'
inside <script setup></script>, changes on it start to be detected again.Reproduction
https://github.com/minenwerfer/vite-repro
Steps to reproduce
Please look into the readme file.
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: