bedrock icon indicating copy to clipboard operation
bedrock copied to clipboard

HTML minification

Open Wolfr opened this issue 3 years ago • 2 comments

Now that we have CSS and JS minification, we could implement HTML minification as well.

Wolfr avatar Jun 21 '21 16:06 Wolfr

This could be as simple as making these lines depend on a new setting:

        html = beautify(html, config.prettify);
        res.send(html);

Wolfr avatar Jun 21 '21 17:06 Wolfr

It wasn't that simple, but a start was made in https://github.com/usebedrock/bedrock/tree/feature/html-minification .

I also noticed that the prettify object has not been corresponding to the right package for years. Nobody ever changed/bothered with changing it I guess. This has also received a fix in that branch.

Wolfr avatar Jun 22 '21 13:06 Wolfr