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

Pass compressHTML settings to manifest #7488

Merged
merged 3 commits into from Jun 28, 2023
Merged

Pass compressHTML settings to manifest #7488

merged 3 commits into from Jun 28, 2023

Conversation

natemoo-re
Copy link
Member

Changes

  • Resolves HTML Minification #7333
  • compressHTML setting was not passed through to adapters because we weren't saving it in the manifest
  • Now the manifest contains compressHTML and the base App will pass this setting through to renderPage

Testing

Tested manually, but will add a test

Docs

N/A, bug fix only

@changeset-bot
Copy link

changeset-bot bot commented Jun 26, 2023

🦋 Changeset detected

Latest commit: 053324c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jun 26, 2023
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this, technically, a minor? We're adding a new property to the manifest, which is passed down to the integrations.

I think we should add a test, blocking before merging.

@bluwy
Copy link
Member

bluwy commented Jun 27, 2023

I think I can see if more as a bug fix as we expect HTML compression to work everywhere, but it didn't handle the manifest part. The new property is an implementation detail of the bug fix. It would be nice to have a test though.

@natemoo-re natemoo-re merged commit d324785 into main Jun 28, 2023
14 checks passed
@natemoo-re natemoo-re deleted the fix/7333 branch June 28, 2023 19:49
@astrobot-houston astrobot-houston mentioned this pull request Jun 28, 2023
matthewp pushed a commit that referenced this pull request Jul 11, 2023
* fix(#7333): pass compressHTML to manifest

* chore: add compressHTML to astro:ssr-manifest test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTML Minification
4 participants