Skip to content

Commit fcf8cb1

Browse files
committed
Remove checked-in built JS assets
1 parent 8c6d3e6 commit fcf8cb1

File tree

6 files changed

+5
-22
lines changed

6 files changed

+5
-22
lines changed

src/Assets/Pack/Microsoft.AspNetCore.Assets.Pack.csproj

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,12 @@
4747

4848
<ItemGroup>
4949
<_MissingBlazorJSFile Include="@(_BlazorJSFile)" Condition="!EXISTS('%(_BlazorJSFile.FullPath)')" />
50-
<_MissingBlazorJSMapFile Include="@(_BlazorJSMapFile)" Condition="!EXISTS('%(_BlazorJSMapFile.FullPath)')" />
51-
52-
<_AllMissingBlazorJSFiles Include="@(_MissingBlazorJSFile)" />
53-
<_AllMissingBlazorJSFiles Include="@(_MissingBlazorJSMapFile)" />
50+
<_MissingBlazorJSFile Include="@(_BlazorJSMapFile)" Condition="!EXISTS('%(_BlazorJSMapFile.FullPath)')" />
5451
</ItemGroup>
5552

56-
<Warning
57-
Condition="'@(_AllMissingBlazorJSFiles)' != ''"
58-
Text="'%(_AllMissingBlazorJSFiles.Identity)' does not exist. Falling back to checked-in copy." />
59-
60-
<ItemGroup>
61-
<_BlazorJSFile Remove="@(_MissingBlazorJSFile)" />
62-
<_BlazorJSFile Include="@(_MissingBlazorJSFile->'..\..\Components\Web.JS\dist\Release\%(Filename)%(Extension)')" />
63-
64-
<_BlazorJSMapFile Remove="@(_MissingBlazorJSMapFile)" />
65-
<_BlazorJSMapFile Include="@(_MissingBlazorJSMapFile->'..\..\Components\Web.JS\dist\Release\%(Filename)%(Extension)')" />
66-
</ItemGroup>
53+
<Error
54+
Condition="'@(_MissingBlazorJSFile)' != ''"
55+
Text="'%(_MissingBlazorJSFile.Identity)' does not exist. Run 'npm run build' in the repo root to generate the file." />
6756

6857
</Target>
6958

src/Components/Web.JS/.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
node_modules/
2-
dist/Debug/
3-
dist/Release/blazor.webassembly.js
4-
dist/Release/blazor.webview.js
2+
dist/

src/Components/Web.JS/dist/Release/blazor.server.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Components/Web.JS/dist/Release/blazor.web.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Components/Web.JS/dist/Release/blazor.webassembly.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Components/Web.JS/dist/Release/blazor.webview.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)