Skip to content

Add support to minify code #2379

@ghost

Description

Description

Will add support to minify a document to a singular line. It should be pretty easy as I don't think html, javascript, or css care about indentation or line breaks or whatever. Check out this website since it's open source as it's hosted on github pages.

Input

With this new feature, when I give like this input:

<head>
<style>
* {
margin: 0 auto;
}
</style>
</head>
<body>
<p>example blah blah blah</p>
</body>

Expected Output

I'd like to see this output:

<head><style>* {margin: 0 auto;}</style></head><body><p>example blah blah blah</p></body>

Environment

OS: HTML5 (web)

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