windicss / nuxt-windicss

🍃 Windi CSS for Nuxt ⚡
331 stars 24 forks source link

Module leads to global SASS files being ignored. #114

Closed skizer closed 3 years ago

skizer commented 3 years ago

Describe the bug Using the nuxt-windicss-module within a nuxt project, leads to SASS files being ignored. Changing the order of css files loaded via virtual entries at the nuxt.config.js css property doesn't solve it. SCSS files are working fine tho.

To Reproduce

  1. Setup nuxt, add the nuxt-windicss-module. (Ether automated, or separated - tested both)
  2. Add a global sass file via nuxt.config.js

Version Nuxt: 2.15.7 nuxt-windicss-module: 1.2.3

harlan-zw commented 3 years ago

Hey @skizer

Thanks for the issue. Should be fixed in 1.4.6, seems like the core package can no longer process sass files. So you won't be able to use @apply in that file.

Let me know if you still have issues :)

ColinEspinas commented 3 years ago

Do you have updates on this issue? It looks like we still can't use @apply with SASS files.

AntonAleikin commented 2 years ago

Have the same issue too. When I run nuxt generate command classes with @apply are ignored in global SASS files. At the same time @apply works in global CSS & SCSS files if you include them in nuxt.config.js css section. But if you try to use scss @imports in i.e. main.scss - all @apply rules from imported scss files will be ignored.