@apply directive doesn't work with Postcss imports in Nuxt 3
enkot opened this issue · 1 comments
enkot commented
Environment
- Operating System:
Linux
- Node Version:
v16.14.2
- Nuxt Version:
3.0.0-rc.12
- Nitro Version:
0.6.0
- Package Manager:
npm@7.17.0
- Builder:
vite
- User Config:
modules
,postcss
,css
- Runtime Modules:
nuxt-windicss@2.5.2
- Build Modules:
-
Reproduction
https://stackblitz.com/edit/github-ih6nny
Describe the bug
Styles added by @apply
are not applied to class written in the .pcss
file imported by another .pcss
file.
AndrewBogdanovTSS commented
The workaround is to place all pcss files into nuxt.config.ts CSS array, which looks quite ugly