MintPlayer.Spark.Minification 11.0.0

dotnet add package MintPlayer.Spark.Minification --version 11.0.0
                    
NuGet\Install-Package MintPlayer.Spark.Minification -Version 11.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MintPlayer.Spark.Minification" Version="11.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MintPlayer.Spark.Minification" Version="11.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MintPlayer.Spark.Minification" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MintPlayer.Spark.Minification --version 11.0.0
                    
#r "nuget: MintPlayer.Spark.Minification, 11.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MintPlayer.Spark.Minification@11.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MintPlayer.Spark.Minification&version=11.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MintPlayer.Spark.Minification&version=11.0.0
                    
Install as a Cake Tool

MintPlayer.Spark.Minification

HTML minification of a Spark app's server-rendered pages, through WebMarkupMin (Apache-2.0).

builder.Services.AddSpark(builder.Configuration, spark => spark
    .AddPrerendering()
    .AddMinification());

app.UseResponseCompression();          // outside: compresses the minified page
// ... static files, UseRouting, UseSpark, UseEndpoints ...
app.UseSpaImproved(spa =>
{
    spa.Options.SourcePath = "ClientApp";
    spa.UseSparkPrerendering();        // minification runs here, just outside the renderer
});
  • Server-rendered apps only. Without UseSparkPrerendering() the host refuses to start.
  • Options: Enabled (also Spark:Minification:Enabled in configuration, which wins), ExcludedPaths, Whitespace (Safe | Medium | Aggressive, default Safe; Aggressive breaks Angular hydration) and RemoveComments (default false: turning it on breaks Angular hydration).
  • It minifies the rendered page, not the index.html template, and leaves the transfer state, JSON-LD, inline scripts and attribute quotes as they are.

The guide is docs/guide-minification.md.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0 47 11/18/2026