Skip to content

Commit

Permalink
updates weboptimizer.sass which now requires manually providing a jav…
Browse files Browse the repository at this point in the history
…ascript engine (#1851)
  • Loading branch information
Masterjun3 committed May 18, 2024
1 parent c75668b commit a282e9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
<PackageVersion Include="FluentValidation.AspNetCore" Version="11.3.0" />
<PackageVersion Include="GitVersion.MsBuild" Version="5.12.0" />
<PackageVersion Include="IPAddressRange" Version="6.0.0" />
<PackageVersion Include="JavaScriptEngineSwitcher.V8" Version="3.24.2" />
<PackageVersion Include="LigerShark.WebOptimizer.Core" Version="3.0.405" />
<PackageVersion Include="LigerShark.WebOptimizer.Sass" Version="3.0.84" />
<PackageVersion Include="LigerShark.WebOptimizer.Sass" Version="3.0.118" />
<PackageVersion Include="MailKit" Version="4.3.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.1" />
<PackageVersion Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.1" />
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.1" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.1" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="8.0.4" />
<PackageVersion Include="Microsoft.ClearScript.Complete" Version="7.4.5" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.1" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.AutoHistory" Version="6.0.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.1" />
Expand Down
4 changes: 4 additions & 0 deletions TASVideos/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using AspNetCore.ReCaptcha;
using JavaScriptEngineSwitcher.Core;
using JavaScriptEngineSwitcher.V8;
using Serilog;
using TASVideos.Api;
using TASVideos.Core.Data;
Expand Down Expand Up @@ -35,10 +37,12 @@
.AddTasvideosApi(settings);

// 3rd Party
JsEngineSwitcher.AllowCurrentProperty = false;
builder.Services
.AddRazorPages(builder.Environment)
.AddIdentity(builder.Environment)
.AddReCaptcha(builder.Configuration.GetSection("ReCaptcha"))
.AddSingleton<IJsEngineSwitcher>(new JsEngineSwitcher([new V8JsEngineFactory()], V8JsEngine.EngineName))
.AddWebOptimizer(pipeline =>
{
pipeline.AddScssBundle("/css/bootstrap.css", "/css/bootstrap.scss");
Expand Down
2 changes: 2 additions & 0 deletions TASVideos/TASVideos.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="JavaScriptEngineSwitcher.V8" />
<PackageReference Include="LigerShark.WebOptimizer.Core" />
<PackageReference Include="LigerShark.WebOptimizer.Sass" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" />
<PackageReference Include="Microsoft.ClearScript.Complete" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit a282e9d

Please sign in to comment.