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

fix(cli): whitespace and line-break support to style block #697

Merged
merged 1 commit into from Feb 22, 2022
Merged

fix(cli): whitespace and line-break support to style block #697

merged 1 commit into from Feb 22, 2022

Conversation

hrishikesh-k
Copy link
Contributor

Previously, I had submitted this PR: windicss/vite-plugin-windicss#257 which enabled me to use syntax like h = 20. I tried doing the same with <style> block. My code was like:

<style
  lang = "windi">
/* some stuff */
</style>

This never did anything until I changed my style block to:

<style lang="windi">
/* some stuff */
</style>

Because of the attributify mode, I'm trying to use all attributes of all tags in a new line to maintain consistency. Thus, when I did the way I did before, it was not working.

This PR changes the style block matching regex to match the above mentioned syntax. Please consider merging it.

@antfu antfu changed the title Whitespace and line-break support to style block in CLI fix(cli): whitespace and line-break support to style block Feb 22, 2022
@antfu antfu merged commit c5c02af into windicss:main Feb 22, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants