Skip to content

Commit

Permalink
Fix html-minifier hook example (#8304)
Browse files Browse the repository at this point in the history
Previously, this would result in completely empty HTML output.
  • Loading branch information
trwnh authored Jan 1, 2023
1 parent fcbfb26 commit e7bc0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/60-appendix/10-migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export async function handle({ event, resolve }) {

return resolve(event, {
transformPageChunk: ({ html, done }) => {
html += page;
page += html;
if (done) {
return building ? minify(page, minification_options) : page;
}
Expand Down

0 comments on commit e7bc0be

Please sign in to comment.