Skip to content
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

Windicss do not take effect when using @import with css or scss file #194

Open
jerrywu001 opened this issue Nov 29, 2022 · 2 comments
Open

Comments

@jerrywu001
Copy link

jerrywu001 commented Nov 29, 2022

Describe the bug

The latest version has this issue, but [email protected] take effect

Online demo: https://stackblitz.com/edit/nuxt-starter-7yncsv?file=assets%2Fpost.css

Windicss do not take effect when using @import with CSS or Scss file. Code:

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['nuxt-windicss'],
  css: ['~/assets/post.css'],
});
/** post.css **/
@import 'prose/p.css';

/** if not use @import, it is correct **/
// .article {
//   p {
//     @apply my-4 leading-relaxed text-blue-500;
//   }
// }
<template>
  <div class="article">
    <p>Hello world!</p>
  </div>
</template>

image

@jerrywu001
Copy link
Author

The latest version has this issue, but [email protected] take effect

@raind33
Copy link

raind33 commented Feb 16, 2023

me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants