View Code? Open in Web Editor
NEW
HTML Minification middleware for ASP.NET Core
Home Page: http://dotnetthoughts.net/build-your-own-middleware-html-minification-middleware/
License: MIT License
htmlminificationmiddleware's Introduction
I'm CTO @ Socxo - Advocacy Marketing Platform | Brand Advocacy Programs & Solutions. I used to write about .NET and Microsoft technologies on https://anuraj.dev/blog
htmlminificationmiddleware's People
Contributors
htmlminificationmiddleware's Issues
I love this package and it works perfectly.
I am trying to opt out from the minification on multiple pages that generate pdf files, does this package support for multiple opt out? I can only do 1 page now as seen below.
app.UseHTMLMinification("(w_)print1_");
Any plans for Core 1.0 upgrade? such a lovely little library.
Is it possible for you to release a new version targeting netcoreapp3.1?
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
Originally posted by @cindro in #4 (comment)
@anuraj , I am using ASP.NET Core (.NET Core 2.0 Preview 2)
This great middleware won't work with app.UseExceptionHandler("/error"); app.UseStatusCodePages();
app.UseHTMLMinification("(w*)page*");
Middleware exception
Once app.UseHTMLMinification() is added to the start.cs file it applies on the whole app.
Now, is there a way for some Controller Actions to opt out from Minification?
I have an Action result that converts HTML code to PDF file and it has now stopped working.
This is a great middleware and it works.
But it stops apps with authentication from working, if an app has app.UseCookieAuthentication the login will fail.
Any ideas?