Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove of input[type='text'] breaks tailwind #95

Closed
krtko1 opened this issue Jul 24, 2022 · 2 comments
Closed

Remove of input[type='text'] breaks tailwind #95

krtko1 opened this issue Jul 24, 2022 · 2 comments

Comments

@krtko1
Copy link

krtko1 commented Jul 24, 2022

https://github.com/tailwindlabs/tailwindcss-forms uses input[type='text'] to style input elements. But mimify-html removes it, so elements ends up unstylized.

@wilsonzlin
Copy link
Owner

text is the default value for the type attribute on <input> elements, so it's correct to omit it for minification purposes. This sounds more like a tailwind issue, as they should have CSS rules like input:not([type]), input[type=text].

@synchronizing
Copy link

synchronizing commented Sep 1, 2022

Is there a way to disable this minification via minify-html?

EDIT: Looked into, and this is not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants