Skip to content

Upgrade to Terser 5 + html-minifier-terser 6 #1687

@slorber

Description

@slorber

Is your feature request related to a problem? Please describe.

Docusaurus users using mono repo had problems due to conflict between Terser 4 / Terser 5

html-minifier-terser v6 has been released recently with Terser 5 support (API is now async), so this lib could also try to upgrade, ensuring we are now all using Terser 5, having less problems in monorepos, reduce install size/time

Describe the solution you'd like

Upgrade libs, keep same behavior.

Make minifyHtml async (The caller sites are already async)

function minifyHtml (html) {

Describe alternatives you've considered

NA

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions