Skip to content

feat: add html-minifier to replacements#725

Open
dreyfus92 wants to merge 1 commit into
mainfrom
add/html-minifier
Open

feat: add html-minifier to replacements#725
dreyfus92 wants to merge 1 commit into
mainfrom
add/html-minifier

Conversation

@dreyfus92

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

closes: #673

📚 Description

adds html-minifier-next to the preffered manifest as modern & light alternative to html-minifier

const result = await minify(html, { collapseWhitespace: true }) // [!code ++]
```

CommonJS:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We probably shouldn't have this in the same diff since a diff is meant to represent real code examples. We wouldn't mix cjs and esm in real code.

I'd probably just drop this

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

i added it cause they have an example for cjs in their readme, but i can def drop it 👀

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

Successfully merging this pull request may close these issues.

[Replacement]: html-minifier

2 participants