Skip to content

Editing 11ty config breaks tailwindcss vite plugin #76

@kitajchuk

Description

@kitajchuk

I recorded a pretty quick loom (hopefully this is helpful)
https://www.loom.com/share/4a73e50bbef444d1bd216d98e3771e8b

Project is viewable on GitHub here (if helpful)
https://github.com/kitajchuk/missjennysschool

Details:

  • I'm using the latest version of tailwindcss v4 with their vite plugin
  • I'm on 11ty v3
  • I'm on 6.0.0-alpha.4 of this plugin

Problem:

Whenever I edit the 11ty config file (or any file imported there) the vite tailwindcss plugin stops working, or breaks. Specifically in the browser I begin getting 404s on the tailwindcss file (in loom).

I have to restart the 11ty dev server to resolve this. Editing templates, CSS and even JavaScript data files all work fine and don't break the plugin. There are no issues building as I have this deployed on Netlify and it works great.

My 11ty config:

https://github.com/kitajchuk/missjennysschool/blob/760b88f2f43b89bc534c081b77010ba067c6b965/eleventy.config.js#L13-L17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions