Skip to content

Commit e42abc6

Browse files
attempt to fix #106 : minified files not included in final build
1 parent 62ddf7d commit e42abc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

BlazorContextMenu/BlazorContextMenu.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
<Product>Blazor.ContextMenu</Product>
2222
</PropertyGroup>
2323

24-
<Target Name="EnsureNpmRestored" BeforeTargets="GenerateStaticWebAssetsManifest" Condition="!Exists('node_modules')">
24+
<Target Name="EnsureNpmRestored" BeforeTargets="Minification" Condition="!Exists('node_modules')">
2525
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
2626
<Exec Command="npm install" />
2727
</Target>
2828

29-
<Target Name="Minification" BeforeTargets="GenerateStaticWebAssetsManifest">
29+
<Target Name="Minification" BeforeTargets="BeforeBuild">
3030
<Message Importance="high" Text="Minifying static assets ..." />
3131
<Exec Command="npm run minify" />
3232
</Target>

build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ if %errorlevel% neq 0 exit /b %errorlevel%
1111
dotnet test Tests/BlazorContextMenu.RazorComponentsE2ETests -c Release --no-build -l:trx
1212
if %errorlevel% neq 0 exit /b %errorlevel%
1313

14-
dotnet pack BlazorContextMenu -c Release --no-build /p:VersionSuffix="%version-suffix%" -o artifacts/nuget
14+
dotnet pack BlazorContextMenu -c Release /p:VersionSuffix="%version-suffix%" -o artifacts/nuget
1515
if %errorlevel% neq 0 exit /b %errorlevel%

0 commit comments

Comments
 (0)