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

important config breaks @apply #93

Closed
mrwokkel opened this issue Mar 31, 2021 · 7 comments
Closed

important config breaks @apply #93

mrwokkel opened this issue Mar 31, 2021 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@mrwokkel
Copy link

When in config:

{
  important: '.wnd',
  ...
}

windi classes are al scoped in .wnd but
@apply 'returns' nothing.

without the important config @apply works as expected.

@mrwokkel
Copy link
Author

Addendum.
Issue seem to be in svelte-windicss-preprocess.
When using vite-plugin-windicss, it is working as expected.

@antfu antfu transferred this issue from windicss/windicss Mar 31, 2021
@antfu
Copy link
Member

antfu commented Mar 31, 2021

Transferred

@alexanderniebuhr alexanderniebuhr self-assigned this Mar 31, 2021
@alexanderniebuhr alexanderniebuhr added the question Further information is requested label Mar 31, 2021
@alexanderniebuhr
Copy link
Member

Is this svelte or sveltekit?

@mrwokkel
Copy link
Author

The issue is with svelte-windicss-preprocess and sveltekit.

Was using the npx svelte-add windicss which is using svelte-windicss-preprocess instead of vite-plugin-windicss.

@alexanderniebuhr
Copy link
Member

👍 then we do suggest using vite-plugin-windicss for svelte-kit for now

@mrwokkel
Copy link
Author

Yes. I also added a comment to the svelte-add repo, hopefully preventing more issues here.

@alexanderniebuhr
Copy link
Member

#65

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

No branches or pull requests

3 participants