Skip to content

Commit e6b954f

Browse files
committed
Update client assets build
1 parent 8896eb6 commit e6b954f

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

src/Umbraco.Forms.Integrations.Crm.Hubspot/Umbraco.Forms.Integrations.Crm.Hubspot.csproj

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<Title>Umbraco Forms Integrations: CRM - Hubspot</Title>
1616
<Description>An extension for Umbraco Forms to add support for submitting data to Hubspot</Description>
1717
<PackageIconUrl></PackageIconUrl>
18-
<PackageProjectUrl>https://github.com/umbraco/Umbraco.Forms.Integrations/tree/main-v10/src/Umbraco.Forms.Integrations.Crm.Hubspot</PackageProjectUrl>
18+
<PackageProjectUrl>https://github.com/umbraco/Umbraco.Forms.Integrations/tree/main-v16/src/Umbraco.Forms.Integrations.Crm.Hubspot</PackageProjectUrl>
1919
<RepositoryUrl>https://github.com/umbraco/Umbraco.Forms.Integrations</RepositoryUrl>
2020
<Version>7.0.0</Version>
2121
<Authors>Umbraco HQ</Authors>
@@ -42,27 +42,20 @@
4242
</ItemGroup>
4343

4444
<ItemGroup>
45-
<Content Include="hubspot.png">
46-
<Pack>true</Pack>
47-
<PackagePath>\</PackagePath>
48-
</Content>
49-
</ItemGroup>
50-
51-
<ItemGroup>
45+
<Content Include="hubspot.png" Pack="true" PackagePath="\" />
5246
<None Include="docs\readme.md" Pack="true" PackagePath="\" />
5347
</ItemGroup>
5448

55-
<ItemGroup>
56-
<Content Include="Views\**" />
57-
</ItemGroup>
58-
59-
<!-- Build client assets using NPM -->
49+
<!--Build client assets using NPM -->
6050
<Import Project="build\Microsoft.AspNetCore.ClientAssets.targets" />
6151
<PropertyGroup>
6252
<!-- Use this to (temporarily) disable building client assets, e.g. to start the project and generate updated API models -->
6353
<ShouldRunClientAssetsBuild>true</ShouldRunClientAssetsBuild>
6454
</PropertyGroup>
6555
<Target Name="ClientAssetsBuildOutputPath" BeforeTargets="ClientAssetsBuild">
66-
<WriteLinesToFile File="Client\config.outputPath.js" Lines="export const outputPath = '../$(IntermediateOutputPath.Replace('\', '/'))clientassets';" Overwrite="true" />
56+
<WriteLinesToFile File="Client\config.outputPath.js" Lines="export const outputPath = '$(Configuration)' !== 'Release' ? '../wwwroot' : '../$(IntermediateOutputPath.Replace('\', '/'))clientassets';" Overwrite="true" />
6757
</Target>
58+
<ItemGroup>
59+
<ClientAssetsInputs Remove="Client\config.outputPath.js" />
60+
</ItemGroup>
6861
</Project>

0 commit comments

Comments
 (0)