Skip to content

removeDeprecatedGapUtilities breaks output css build #2194

@ghost

Description

Describe the problem:

When building including the future:

  ...
future: {
    removeDeprecatedGapUtilities: true,
  },
...

the messages below are injected into build without being commented which breaks the CSS file.

risk - There are upcoming breaking changes: removeDeprecatedGapUtilities
risk - We highly recommend opting-in to these changes now to simplify upgrading Tailwind in the future.

When not using the key at all:

risk - There are upcoming breaking changes: removeDeprecatedGapUtilities
risk - We highly recommend opting-in to these changes now to simplify upgrading Tailwind in the future.
risk - https://tailwindcss.com/docs/upcoming-changes

Is this an intentional move to warn people?
I'm pretty sure there must be a better way than doesn't break the possibility to automate.
Of course you can remove the injected lines but then again, that's not automation.

If it's a bug, glad to help you investigate further.

Great job with the library, keep it up.

Link to a minimal reproduction:

Fresh create-react-app with tailwind@v1.7.1

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