usebedrock / bedrock

Bedrock is a static site generator to create large-scale HTML prototypes and document design systems
https://bedrockapp.org
Other
206 stars 28 forks source link

HTML minification #382

Open Wolfr opened 3 years ago

Wolfr commented 3 years ago

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

Wolfr commented 3 years ago

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

        html = beautify(html, config.prettify);
        res.send(html);
Wolfr commented 3 years ago

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.