WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

Minify HTML / Razor Pages

Open Beblia opened this issue 2 years ago • 2 comments

Can you please add the ability to minify html/razor pages? Currently I see that only css and js can be minified. Would be an awesome addition. This is for Blazor Web Server on .net 7. Thanks.

Beblia avatar Jan 19 '23 02:01 Beblia

Due to the extension framework, maybe an extension could be built from:

https://github.com/Taritsyn/WebMarkupMin

I have installed both WebOptimizer and WebMarkupMin to see if they play nice together. It's working for my project. I did a quick view-source before and after. I can see that my HTML become a single packed line after installing WebMarkupMin, so we can get the effect we want this way.

A9G-Data-Droid avatar Jan 12 '24 18:01 A9G-Data-Droid