27 строки
1.8 KiB
XML
27 строки
1.8 KiB
XML
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<BundleOutputPath>$(OutputPath)</BundleOutputPath>
|
|
<BundleSourceMapDir>$(OutputPath)sourcemaps\react</BundleSourceMapDir>
|
|
</PropertyGroup>
|
|
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\Bundle.props" />
|
|
<Target
|
|
Name="MakeTestBundles"
|
|
Condition="'$(DesignTimeBuild)' != 'true'"
|
|
BeforeTargets="PrepareForBuild"
|
|
Inputs="@(JsBundleEntry)"
|
|
Outputs="
|
|
@(JsBundleEntry->'$(BundleOutputPath)\%(Filename).bundle');
|
|
@(JsBundleEntry->'$(BundleSourceMapDir)\%(Filename).bundle.packager.map')">
|
|
<MakeDir Directories="$(BundleOutputPath)" Condition="!Exists('$(BundleOutputPath)')" />
|
|
<MakeDir Directories="$(BundleSourceMapDir)" Condition="!Exists('$(BundleSourceMapDir)')" />
|
|
<Message Importance="High" Text="Running [$(BundleCliCommand) --platform windows --entry-file %(JsBundleEntry.FullPath) --bundle-output $(BundleOutputPath)\%(JsBundleEntry.Filename).bundle --dev $(UseDevBundle) --reset-cache --sourcemap-output $(BundleSourceMapDir)\%(JsBundleEntry.Filename).bundle.packager.map $(BundlerExtraArgs)] to build bundle file." />
|
|
<Exec Command='$(BundleCliCommand) --platform windows --entry-file "%(JsBundleEntry.FullPath)" --bundle-output "$(BundleOutputPath)\%(JsBundleEntry.Filename).bundle" --dev $(UseDevBundle) --reset-cache --sourcemap-output "$(BundleSourceMapDir)\%(JsBundleEntry.Filename).bundle.packager.map" $(BundlerExtraArgs)' ConsoleToMSBuild="true" WorkingDirectory="$(BundleCommandWorkingDir)" />
|
|
<ItemGroup>
|
|
<Content Include="@(JsBundleEntry->'$(BundleOutputPath)\%(Filename).bundle')">
|
|
<Link>JSBundles\%(Filename).bundle</Link>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
</Target>
|
|
</Project>
|