Skip to content

HTML minification modifies content re: whitespace #16656

@connorjclark

Description

@connorjclark

image

This only happens for release (debug does not minify HTML).

Related code:

def minify_html(filename):

Can be avoided with -s MINIFY_HTML=0

Personally I don't think emscripten should bother minifying HTML at all. For my shell file, minification reduced the file from 10KB to 6.5KB, so the savings just aren't worth it. And given the complexity of the minify_html function (a lot of flags passed to this external tool, many knobs to turn) there may be other unwanted semantic modifications going on here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions