Skip to content

Purged attribute selectors #12

Closed
Closed
@ayrton

Description

@ayrton

Looks like PurgeCSS automatically purges the attribute selectors eg [type='checkbox'].

I had to add the following rule to the safelist:

module.exports = {
  plugins: [require("@tailwindcss/forms")],
  purge: {
    options: {
      safelist: [
        "type", // [type='checkbox']
      ],
    },
    preserveHtmlElements: true,
  },
};

Should this be something that is set up out of the box? I'm happy to PR if you can point me into the right direction

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