Skip to content

Commit 2f1a44f

Browse files
committed
Use integrated enviornment tag for minified css instead of custom solution
1 parent 2e8b398 commit 2f1a44f

File tree

4 files changed

+8
-21
lines changed

4 files changed

+8
-21
lines changed

LinkDotNet.Blog.IntegrationTests/LinkDotNet.Blog.IntegrationTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
@@ -9,7 +9,7 @@
99
<PackageReference Include="bunit" Version="1.3.42" />
1010
<PackageReference Include="FluentAssertions" Version="6.2.0" />
1111
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.0" />
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0-preview-20211109-03" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0-preview-20211130-02" />
1313
<PackageReference Include="Moq" Version="4.16.1" />
1414
<PackageReference Include="RavenDB.TestDriver" Version="5.3.0" />
1515
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.32.0.39516">

LinkDotNet.Blog.UnitTests/LinkDotNet.Blog.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<ItemGroup>
1010
<PackageReference Include="bunit" Version="1.3.42" />
1111
<PackageReference Include="FluentAssertions" Version="6.2.0" />
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0-preview-20211109-03" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0-preview-20211130-02" />
1313
<PackageReference Include="Moq" Version="4.16.1" />
1414
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.32.0.39516">
1515
<PrivateAssets>all</PrivateAssets>

LinkDotNet.Blog.Web/Pages/DebugHelper.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

LinkDotNet.Blog.Web/Pages/_Host.cshtml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@
2222
<meta name="msapplication-TileColor" content="#da532c">
2323
<meta name="theme-color" content="#ffffff">
2424
<link rel="preload" href="css/bootstrap/bootstrap.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'"><noscript><link rel="stylesheet" href="css/bootstrap/bootstrap.min.css"></noscript>
25-
@if (DebugHelper.IsDebug)
26-
{
25+
<environment include="Development">
2726
<link href="css/basic.css" rel="stylesheet" />
28-
}
29-
else
30-
{
27+
</environment>
28+
<environment include="Staging,Production">
3129
<link href="css/bundle.min.css" rel="stylesheet"/>
32-
}
30+
</environment>
3331
<link href="LinkDotNet.Blog.Web.styles.css" rel="stylesheet"/>
3432
<link rel="preload" href="_content/Blazored.Toast/blazored-toast.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'"><noscript><link rel="stylesheet" href="_content/Blazored.Toast/blazored-toast.min.css"></noscript>
3533
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
@@ -53,7 +51,7 @@
5351
<script async src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js" integrity="sha512-Pbb8o120v5/hN/a6LjF4N4Lxou+xYZ0QcVF8J6TWhBbHmctQWd8O6xTDmHpE/91OjPzCk4JRoiJsexHYg4SotQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
5452
<script async src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/languages/csharp.min.js" integrity="sha512-v7mtZg9ySysViDE/8FxpWzLPe4Qzj+xQ//OqdMkl0UapomXAjp79QNiziv6PLmG5GSXjTcfCOzEBv5B/Rp6COg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
5553
<script async src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/all.min.js" integrity="sha512-RXf+QSDCUQs5uwRKaDoXt55jygZZm2V++WUZduaU/Ui/9EGp3f/2KZVahFZBKGH0s774sd3HmrhUy+SgOFQLVQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
56-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha256-cMPWkL3FzjuaFSfEYESYmjF25hCIL6mfRSPnW8OVvM4=" crossorigin="anonymous"></script>
54+
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha256-cMPWkL3FzjuaFSfEYESYmjF25hCIL6mfRSPnW8OVvM4=" crossorigin="anonymous"></script>
5755
<script async src="components/slideshow.js" ></script>
5856
</body>
5957
</html>

0 commit comments

Comments
 (0)