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
Unexpected behaviour. #25
Comments
You can try to remove
import type { AstroUserConfig } from "astro";
import compress from "astro-compress";
export default (): AstroUserConfig => {
return {
integrations: [
compress({
html: {
removeRedundantAttributes: false
},
}),
],
};
}; This is because the default value for a type attribute on an input element is text and is redundant. |
Ahhh right, this helped fix that issue. |
Thank you @NikolaRHristov |
np |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason it insists on removing
type="text"
on inputs.Now while I understand why it may do this as if your not specifying it as anything specific the generic fallback is text, but in my case it leads to this pretty annoying css bug for my contact page.
With Compress Active:
Without Compress:
I'm not really sure why it does this as I don't really see it doing much to reduce size.
Would it be possible to make this opt-out or opt-in in the config ?
The text was updated successfully, but these errors were encountered: