bedrock
bedrock copied to clipboard
HTML minification
Now that we have CSS and JS minification, we could implement HTML minification as well.
This could be as simple as making these lines depend on a new setting:
html = beautify(html, config.prettify);
res.send(html);
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.