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" />
<PackageReference Include="MintPlayer.Spark.Minification" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=MintPlayer.Spark.Minification&version=11.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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(alsoSpark:Minification:Enabledin configuration, which wins),ExcludedPaths,Whitespace(Safe|Medium|Aggressive, defaultSafe;Aggressivebreaks Angular hydration) andRemoveComments(defaultfalse: turning it on breaks Angular hydration). - It minifies the rendered page, not the
index.htmltemplate, and leaves the transfer state, JSON-LD, inline scripts and attribute quotes as they are.
The guide is docs/guide-minification.md.
| Product | Versions 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.
-
net11.0
- MintPlayer.Spark.Abstractions (>= 11.0.0)
- WebMarkupMin.AspNetCoreLatest (>= 2.24.0)
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 |