fix: do not publish manifest.json to static files folder.
This commit is contained in:
1 parent
5c81ed18b2
commit
27623a4e93
4 files changed
+16
-18
No files matched your search
@@ -16,9 +16,6 @@
|
||||
<None Update="Templates\**\*.html">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="wwwroot\dist\.vite\manifest.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -32,6 +29,12 @@
|
||||
<Message Importance="high" Text="Changes detected. Running npm run build..." />
|
||||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" />
|
||||
<Touch Files="$(FrontendStampFile)" AlwaysCreate="true" />
|
||||
<ItemGroup>
|
||||
<ResolvedFileToPublish Include="$(MSBuildProjectDirectory)\wwwroot\dist\.vite\manifest.json">
|
||||
<RelativePath>Templates\manifest.json</RelativePath>
|
||||
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
|
||||
</ResolvedFileToPublish>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
Reference in new issue
Block a user