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

WindiCSS classes are not inlined with "inlineSSRStyles: true" #15449

Closed
enkot opened this issue Nov 11, 2022 · 3 comments
Closed

WindiCSS classes are not inlined with "inlineSSRStyles: true" #15449

enkot opened this issue Nov 11, 2022 · 3 comments

Comments

@enkot
Copy link
Contributor

enkot commented Nov 11, 2022

Environment

  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.13
  • Nitro Version: 0.6.1
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: modules, experimental
  • Runtime Modules: nuxt-windicss@2.5.3
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/nuxt-starter-encemj

Describe the bug

Nuxt doesn't inline WindiCSS classes with "inlineSSRStyles: true".

Additional context

No response

Logs

No response

@manniL
Copy link
Member

manniL commented Nov 11, 2022

AFAIK WindiCSS classes are loaded as global styles.
Nuxt does not inline global styles anymore since nuxt/framework#8666

@manniL manniL closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2022
@daguitosama
Copy link
Contributor

Hi @manniL i pretty much will like to keep my critical styles on the html head, im setting:

experimental: {
        inlineSSRStyles: true,
    },

But it doesn't do it, nuxt/framework#8666 remove it completely? The experimental key is still present in rc-13 and IntelliSense says is on true by default.

@manniL
Copy link
Member

manniL commented Nov 13, 2022

@daguitosama From my understanding, the option it will still inline component styles but not global styles.

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants