-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
HMR when using imported sass files #9
Comments
It's possible, but requires |
Awesome! Any chance that functionality will make it into |
Same Issues But Some DifferencesI started a mini-project of Vue 3.0 UI Component and I'd like to give it a try with Vite, There is the repo of the project and I think this issue can be reproduced. How did the bug performanceCheck out the
This entry file would import all the components' styles, but when I modified something in It may be quite different from this issue but all of them are I hope this issue could be solved soon. 😄 |
@ShenQingchuan Yeah. This case is already considered. But I'm not recommand for import all css into one file (main.js).For current implement, it will full update form main.js when one scss file changed. |
OK!Thanks for this useful suggestion! |
Is there a way to track progress of this feature ? The PR linked was merged but does not address the HMR issue for sass preprocessor (is there an issue on @vue/compiler-sfc we can follow ?) |
It still does not work for Sass files imported outside from the current package. I have to re-save the file where it's imported and then it also only temporary applies the style until I reload the page. It happens with files imported from node_modules folder and with files outside the package directory. |
As a workaround I symlink the sass styles into my package directory so I can test my ui package efficiently. But I think this should be fixed. I still have the problem with the styles resetting when I reload the page with this workaround. |
Is it possible to trigger HMR when importing variables from a
.scss
file?It would be amazing to see the HMR work when the variable from
.vars.scss
changes. Is that possible?The text was updated successfully, but these errors were encountered: