Skip to content

Hashing strategy is wrong for Tailwind styles #61

@Princesseuh

Description

@Princesseuh

Version

0.6.4

Describe the Bug

Maudit hashes assets before bundling, this is done on purpose so that assets are more flexible and for performance reasons. This works for all kinds of assets, including transformed images, but is wrong for Tailwind, where the content changes based on things unrelated to the file itself.

There's some annoying hacks, like changing the hash on every build (which is what I'm leaning towards right now), but I wonder if there's not a better solution somehow. I wouldn't mind if hashing Tailwind files is slower because it has to call Tailwind to check or something, but calling to Tailwind is not slow, it's extremely mega slow due to Node overhead, so this probably isn't possible. Perhaps tailwind-oxide could help us here since we're really only looking for classes, not sure.

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureCaused by an inherent architecture issue that is impossible to fix without often undesirable changes

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions