Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've been trying to integrate WebMarkMin into Umbraco 12 to minimize HTML output, but it hasn't been working. I'm using WebMarkupMin.AspNetCore7 version 2.14.1
with this code in ConfigureService::
services.AddWebMarkupMin( options => { options.AllowMinificationInDevelopmentEnvironment = true; options.AllowCompressionInDevelopmentEnvironment = true; }) .AddHtmlMinification( options => { options.MinificationSettings.RemoveRedundantAttributes = true; options.MinificationSettings.RemoveHttpProtocolFromAttributes = true; options.MinificationSettings.RemoveHtmlComments = true; options.MinificationSettings.RemoveHtmlCommentsFromScriptsAndStyles = true; }) .AddXmlMinification() .AddHttpCompression();
and in Configure:
app.UseWebMarkupMin();
any ideas?
I still haven't found a solution to this
Hi Kole, I successfully managed to minify my source code. The trick is to run the UseWebMarkupMin BEFORE UseUmbraco in the service. E.g.:
app.UseHttpsRedirection(); app.UseWebMarkupMin(); <--- app.UseUmbraco() .WithMiddleware(u => { u.UseBackOffice(); u.UseWebsite(); }) .WithEndpoints(u => { u.UseInstallerEndpoints(); u.UseBackOfficeEndpoints(); u.UseWebsiteEndpoints(); }); app.UseSmidge(bundles =>
Thanks Robin! I'll try it out
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Integrating WebMarkupMin into Umbraco 12?
I've been trying to integrate WebMarkMin into Umbraco 12 to minimize HTML output, but it hasn't been working. I'm using WebMarkupMin.AspNetCore7 version 2.14.1
with this code in ConfigureService::
and in Configure:
any ideas?
I still haven't found a solution to this
Hi Kole, I successfully managed to minify my source code. The trick is to run the UseWebMarkupMin BEFORE UseUmbraco in the service. E.g.:
Thanks Robin! I'll try it out
is working on a reply...