1
votes

Use the RazorFormat plugin in .netframework, which has a MinifyHtml property. Why does not the .netcore use this plug-in without the MinifyHtml property?

in .netframework

Plugins.Add(new RazorFormat{MinifyHtml = true, UseAdvancedCompression = true});

in .netcore

Plugins.Add(new RazorFormat());

How to implement MinifyHtml in .net core?

1

1 Answers

1
votes

The ServiceStack.Razor implementation in .NET Core uses MVC Razor which handles all compilation and rendering of Razor Views which means ServiceStack does not control the Razor output in .NET Core and can't offer the HTML, CSS and JavaScript Minification functionality like it can on the .NET Framework.