Skip to content

Commit fbff3bf

Browse files
Revert HTML Minification Changes (#7891)
1 parent f05b6f2 commit fbff3bf

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

src/dotnet/APIView/APIViewWeb/APIViewWeb.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
5858
<PackageReference Include="Octokit" Version="9.1.0" />
5959
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
60-
<PackageReference Include="WebMarkupMin.AspNetCore7" Version="2.16.0" />
6160
</ItemGroup>
6261

6362
<ItemGroup>

src/dotnet/APIView/APIViewWeb/Pages/Assemblies/_CodeLine.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
</svg>";
9999
}
100100
}
101-
cellContent += Model.CodeLine.DisplayString.Replace(' ', '\u00A0');
101+
cellContent += Model.CodeLine.DisplayString;
102102
}
103103

104104
<tr class="@rowClass" data-line-id="@(isRemoved ? string.Empty : Model.CodeLine.ElementId)" data-cross-lang-id="@(isRemoved ? string.Empty : Model.CodeLine.CrossLanguageDefinitionId)">

src/dotnet/APIView/APIViewWeb/Startup.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
using System.IO;
3535
using Microsoft.Azure.Cosmos;
3636
using APIViewWeb.Managers.Interfaces;
37-
using WebMarkupMin.AspNetCore7;
3837

3938
namespace APIViewWeb
4039
{
@@ -243,11 +242,7 @@ public void ConfigureServices(IServiceCollection services)
243242
services.AddHostedService<PullRequestBackgroundHostedService>();
244243
services.AddHostedService<LinesWithDiffBackgroundHostedService>();
245244
services.AddAutoMapper(Assembly.GetExecutingAssembly());
246-
services.AddWebMarkupMin(options =>
247-
{
248-
options.AllowMinificationInDevelopmentEnvironment = true;
249-
options.AllowCompressionInDevelopmentEnvironment = true;
250-
}).AddHtmlMinification().AddHttpCompression();
245+
251246
services.AddControllersWithViews()
252247
.AddJsonOptions(options => options.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.Preserve)
253248
.PartManager.ApplicationParts.Add(new AssemblyPart(typeof(BaseApiController).Assembly));
@@ -329,7 +324,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
329324
app.UseMiddleware<SwaggerAuthMiddleware>();
330325
app.UseSwagger();
331326
app.UseSwaggerUI();
332-
app.UseWebMarkupMin();
333327

334328
app.UseEndpoints(endpoints => {
335329
endpoints.MapRazorPages();

0 commit comments

Comments
 (0)