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

Cannot use !important on @apply of SCSS files and px is not tranform to rem #324

Open
RLJ-Y opened this issue Oct 13, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@RLJ-Y
Copy link

RLJ-Y commented Oct 13, 2023

Describe the bug
I tried to use @apply leading-90px !important; on an SCSS file and it gave me this error:

[plugin:vite:css] [sass] expected ";".
  ╷
2 │   @apply leading-90px  !important;
  │                        ^
  ╵
  src\assets\styles\public.scss 2:24  @use

in public.scss

.detail-header {
  @apply leading-90px  !important;
}

when i delete !important it is work。

leading-90px px is not tranform to rem,but when write it in xxx.vue's template it is tranform to rem

Minimal Reproductions

Versions

  • vite-plugin-windicss: 1.91
  • vite: 4.1.4
  • framework(vue/react/svelte/etc):vue

Additonal Context

@RLJ-Y RLJ-Y added the bug Something isn't working label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant