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
Use import xx from 'xx.css', production environment problem #7281
Comments
I digged down this and found that this was happening because This is the same reason for #6725 and it will be fixed with #7098. |
Hey, I tested it locally with your code https://github.com/sapphi-red/vite/tree/fix/import-with-query-exports-field and it didn't fix the problem I mentioned |
I tried again and it did work for me. How did you test it? Did you follow this? Maybe you forgot to run |
Just started looking at vite and I'm not sure my steps are correct |
I am not familiar with I suppose running |
you can try: https://vitejs.dev/guide/#using-unreleased-commits |
I tried that now and it did work for me also. Did you run |
Describe the bug
import xx from 'xx.css'
There is no problem in the development environment, but there is a problem in the production environment.
This problem appeared after vite@2.7.13, there was no problem before.
Here are the key screenshots
Develop(css has content)
Production(css content is empty)
Reproduction
https://stackblitz.com/edit/vitejs-vite-daffdh?file=src/App.vue
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: