Skip to content

nuxt-booster breaks url("..") CSS functions with quotes in Nuxt 4 on static site generation, breaking all styles #1318

Description

@codeflorist

EDIT: After further debugging, i've identified the source of the issue in this comment:
#1318 (comment)

Original (obsolete) post:

Describe the bug
When using nuxt-booster with Tailwind v4 and nuxt generate, all tailwind-classes are gone and everything is unstyled.

This happens with the current v7.0.0-beta.0 version, of @nuxtjs/tailwindcss, as well as with the manual solution outlined here.

To Reproduce
Steps to reproduce the behavior:

  1. Download reproduction at https://stackblitz.com/edit/nuxt-starter-r1ta6tdy
  2. Call pnpm install --shamefully-hoist && pnpm generate && pnpm preview
  3. The text should be bold and purple, but it is unstyled.

When removing nuxt-booster, or using pnpm build instead of pnpm generate, or pnpm dev, the text is correctly styled.

Expected behavior
Tailwind classes should not get removed.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 122.0.6261.129 (Offizieller Build) (64-Bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions