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

Big CLS with .scss files #559

Closed
waysagency opened this issue Nov 7, 2022 · 2 comments
Closed

Big CLS with .scss files #559

waysagency opened this issue Nov 7, 2022 · 2 comments

Comments

@waysagency
Copy link

Version

@nuxtjs/tailwindcss: "^6.1.3"
nuxt: "3.0.0-rc.12"

What is Expected?

The css should be printed directly in the DOM.

What is actually happening?

The css is renderd in a .css file.

What normally happens without any configuration is that the css is printed into the DOM and imported as a css file.
image

Now when I use SASS and add this to the configuration, the CSS is not printed to the DOM. This causes huge CLS and weird behavior.
image

Can someone explain why this is happening and how I can get the CSS printed to the DOM?

Thanks!!

@waysagency waysagency added the bug Something isn't working label Nov 7, 2022
@waysagency
Copy link
Author

I just found out that the problem is on the side of Nuxt... css will be printed in the DOM within a style tag. And scss not...

@ineshbose
Copy link
Collaborator

It's a decision from the framework to exclude the CSS to have HTML DOM to be of smaller size.
You can read more in #579 and #531 (comment)

@ineshbose ineshbose closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2023
@ineshbose ineshbose removed the bug Something isn't working label May 11, 2023
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

2 participants