-
-
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
In watch mode, changes in @import'ed files don't trigger CSS rebuild #3387
Comments
FYI Pretty sure this regression happened within the past 8 days because this command (i.e. Hope this helps Sincerely |
addition to this bug: if the application is in lib mode, the --watch is performed when i change the main css file, but the new css file is not generated. |
Awesome! Thank you @CHOYSEN and @patak-js! |
Hi guys I don't know if this is a related issue, I noticed with vite 2.3.4 and .. then if I edit one of my entry files (a .ts file), the I don't know if this is a new bug, I can try with an older vite version later this afternoon if you want. |
i had open a new issue: #3566 |
@Jutanium Ahh thank you! |
This issue has been locked since it has been closed for more than 14 days. If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Vite version. If you have any other comments you should join the chat at Vite Land or create a new discussion. |
Describe the bug
Quick steps to reproduce (also see the link to repo below):
app.css
file@import "components/card.css"
fileBug:
app.css
, the CSS is rebuiltcomponents/card.css
, nothing happens.Re-running the watch, or rebuilding will properly rebuild the CSS. But when in watch mode, changes in
@import
ed files don't trigger the rebuild.Reproduction
https://github.com/dmitriid/vite-import-css-reproduction
This repo closely follows my current setup with respect to location of files, but I don't think there's anything out of the ordinary. The README shows how to run and where to look (there are two CSS files and one output file)
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: Reproduced for both
npm
andyarn
Before submitting the issue, please make sure you do the following
Read the Contributing Guidelines.
Read the docs.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Note to the above: perhaps triggered by the same problem: #3108 Styles not being recompiled when using --watch mode
Provide a description in this issue that describes the bug.
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 https://github.com/vuejs/vue-next instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
The text was updated successfully, but these errors were encountered: