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

How to prevent line break in a css @apply #182

Open
lorenzofranzone opened this issue Jan 31, 2022 · 0 comments
Open

How to prevent line break in a css @apply #182

lorenzofranzone opened this issue Jan 31, 2022 · 0 comments

Comments

@lorenzofranzone
Copy link

Hello, I would like to prevent line break only in css files where I add tailwind classes with @apply

In app.css I have for a quick example:

h1{
   @apply text-red-500 uppercase
        bg-red-100;
}

With a standard behavior on save I get:

h1{
   @apply text-red-500 uppercase bg-red-100;
}

As you can see I can't preserve the line break inside the apply, so I wonder if there is a possibility to solve this problem or if there is a quicker solution to exclude the behavior of the plugin on all css files, keeping it active only in the HTML markup.
I don't use prettier or others, just html and css to test this problem.
Thanks for your time, see you soon 🤞🏼

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

No branches or pull requests

1 participant