Commit 3e1fb771 authored by nitroxis's avatar nitroxis

Merge branch 'master' of https://gitlab.com/nitroxis/urlshortener

parents 69e03ab8 cb5ce6b0
......@@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using WebMarkupMin.AspNetCore2;
namespace UrlShortener
{
......@@ -31,6 +32,8 @@ namespace UrlShortener
services.AddMvc();
services.AddSingleton(this.database);
services.AddSingleton(this.uriSettings);
services.AddWebMarkupMin()
.AddHtmlMinification();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
......@@ -46,6 +49,7 @@ namespace UrlShortener
app.UseExceptionHandler("/Home/Error");
}
app.UseWebMarkupMin();
app.UseStaticFiles();
app.UseStatusCodePages();
......
......@@ -7,8 +7,9 @@
<ItemGroup>
<PackageReference Include="BuildBundlerMinifier" Version="2.9.406" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.2.3" />
<PackageReference Include="Microsoft.AspNetCore.All" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.7.11" />
<PackageReference Include="WebMarkupMin.AspNetCore2" Version="2.5.0" />
</ItemGroup>
<ItemGroup>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment