Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML minification #382

Open
Wolfr opened this issue Jun 21, 2021 · 2 comments
Open

HTML minification #382

Wolfr opened this issue Jun 21, 2021 · 2 comments

Comments

@Wolfr
Copy link
Contributor

Wolfr commented Jun 21, 2021

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

@Wolfr
Copy link
Contributor Author

Wolfr commented Jun 21, 2021

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

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

@Wolfr
Copy link
Contributor Author

Wolfr commented Jun 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant