Skip to content

@tailwindcss/vite fails handling image-set() notations #17035

@RaBic

Description

@RaBic

I'm currently using v4.0.11 as a Vite plugin with Node v22.14.0.

when using image-set() CSS functional notations in a css file and processing them with the tailwind vite plugin,

background-image: image-set(
  url("@/assets/image1.avif") 1x,
  url("@/assets/image2.avif") 2x,
);

becomes

background-image:image-set(url(/assets/image1-xxx.avif) 1x,url(2x))

I've made a little repo for reproduction purposes:
RaBic/tw4-imageset-bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions