Skip to content

Commit

Permalink
Update Content in library
Browse files Browse the repository at this point in the history
  • Loading branch information
mikes-gh committed Feb 29, 2024
1 parent a171e0a commit f88b44d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MudBlazor.JSCompiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>MudBlazor.JSCompiler</PackageId>
<Version>1.0.12</Version>
<Version>1.0.13</Version>
<Authors>mikes-gh</Authors>
<Description>MudBlazor JS Compiler Library</Description>
<PackageDescription>MudBlazor JS Compiler Library</PackageDescription>
Expand Down
14 changes: 12 additions & 2 deletions build/MudBlazor.JSCompiler.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@

<UsingTask TaskName="MudBlazor.JSCompiler.CompileJS" AssemblyFile="$(JSCompilerTasksAssembly)" />

<Target Name="Compile JS" BeforeTargets="BeforeBuild">
<CompileJS/>
<Target Name="Compile JS" BeforeTargets="Build;ResolveScopedCssInputs;BundleMinify">
<CompileJS>
<Output TaskParameter="GeneratedFile" ItemName="CompiledJsFile" />
</CompileJS>
</Target>

<ItemGroup>
<None Remove="@(CompiledJsFile)" />

<!-- Fix to only include files that were newly generated as to not have duplicate Content items. -->
<_NewCompiledJsFile Include="@(CompiledJsFile)" Exclude="@(Content)" />
<Content Include="@(_NewCompiledJsFile)" />
</ItemGroup>

</Project>

0 comments on commit f88b44d

Please sign in to comment.