-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Nested classes receives merged styles from all siblings #165
Comments
Hey @KonradDeskiewicz Can you confirm the Nuxt version and if you're using nuxt-vite, alternatively if you could supply a reproduction repo that would also be helpful to debug it |
Config was: latest Nuxt 3 with Vite + latest Windi. Unfortunately, there were many more issues we've stumbled upon (other than WindiCSS) so for now, we've given up with Nuxt 3, and the next MVP will use Nuxt 2. Therefore I don't have the repo anymore. Sorry. |
last working with
|
I have a similar problem. For me, nested @apply statements break the top-level @apply properties after Nuxt version Here is a reproduction:
|
@replygirl is right. 👍 The following config seems to resolve the issue: import { defineNuxtConfig } from 'nuxt3';
export default defineNuxtConfig({
modules: ['nuxt-windicss'],
postcss: {
plugins: {
cssnano: false
}
}
}); This might be something to resolve in |
Describe the bug
Windi doesn't split styles correctly
To Reproduce
I've created some nested styles structure, and windicss aggregates all nested styles from the siblings and apply them to all nested clases.
Expected behavior
Each class should have only its own styles
Screenshots
The text was updated successfully, but these errors were encountered: