diff --git a/change/react-native-windows-2020-03-09-15-18-29-master.json b/change/react-native-windows-2020-03-09-15-18-29-master.json new file mode 100644 index 00000000000..b964ae969ee --- /dev/null +++ b/change/react-native-windows-2020-03-09-15-18-29-master.json @@ -0,0 +1,9 @@ +{ + "type": "prerelease", + "comment": "Release is Bundle by default, thus BundleCommand should do Release type things.", + "packageName": "react-native-windows", + "email": "adamgor@microsoft.com", + "commit": "c871348bce18eaa180b5223a3fb4343d0c923cd6", + "dependentChangeType": "patch", + "date": "2020-03-09T22:18:28.823Z" +} \ No newline at end of file diff --git a/packages/microsoft-reactnative-sampleapps/windows/SampleAppCPP/SampleAppCpp.vcxproj b/packages/microsoft-reactnative-sampleapps/windows/SampleAppCPP/SampleAppCpp.vcxproj index 37891ebedd2..7ed61040ea4 100644 --- a/packages/microsoft-reactnative-sampleapps/windows/SampleAppCPP/SampleAppCpp.vcxproj +++ b/packages/microsoft-reactnative-sampleapps/windows/SampleAppCPP/SampleAppCpp.vcxproj @@ -63,6 +63,12 @@ true false + + true + + + false + @@ -176,7 +182,7 @@ cd $(SolutionDir).. - npx --no-install react-native bundle --platform windows --entry-file index.windows.js --bundle-output windows/SampleAppCpp/Bundle/index.windows.bundle --assets-dest windows/SampleAppCpp/Bundle + npx --no-install react-native bundle --platform windows --entry-file index.windows.js --dev $(ReactNativeBundleDevMode) --bundle-output windows/SampleAppCpp/Bundle/index.windows.bundle --assets-dest windows/SampleAppCpp/Bundle diff --git a/packages/microsoft-reactnative-sampleapps/windows/SampleAppCS/SampleAppCS.csproj b/packages/microsoft-reactnative-sampleapps/windows/SampleAppCS/SampleAppCS.csproj index 7206c91b488..4b178520794 100644 --- a/packages/microsoft-reactnative-sampleapps/windows/SampleAppCS/SampleAppCS.csproj +++ b/packages/microsoft-reactnative-sampleapps/windows/SampleAppCS/SampleAppCS.csproj @@ -113,6 +113,12 @@ true true + + true + + + false + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\ @@ -176,7 +182,7 @@ cd $(SolutionDir).. - npx --no-install react-native bundle --platform windows --entry-file index.windows.js --bundle-output windows/SampleAppCS/Bundle/index.windows.bundle --assets-dest windows/SampleAppCS/Bundle + npx --no-install react-native bundle --platform windows --entry-file index.windows.js --dev $(ReactNativeBundleDevMode) --bundle-output windows/SampleAppCS/Bundle/index.windows.bundle --assets-dest windows/SampleAppCS/Bundle diff --git a/vnext/local-cli/generator-windows/templates/cpp/proj/MyApp.vcxproj b/vnext/local-cli/generator-windows/templates/cpp/proj/MyApp.vcxproj index de7e6f84a66..44685da54ad 100644 --- a/vnext/local-cli/generator-windows/templates/cpp/proj/MyApp.vcxproj +++ b/vnext/local-cli/generator-windows/templates/cpp/proj/MyApp.vcxproj @@ -54,6 +54,12 @@ x64 + + true + + + false + Application $(DefaultPlatformToolset) @@ -160,7 +166,7 @@ cd $(SolutionDir).. - npx --no-install react-native bundle --platform windows --entry-file index.js --bundle-output windows/$(SolutionName)/Bundle/index.windows.bundle --assets-dest windows/$(SolutionName)/Bundle + npx --no-install react-native bundle --platform windows --entry-file index.js --dev $(ReactNativeBundleDevMode) --bundle-output windows/$(SolutionName)/Bundle/index.windows.bundle --assets-dest windows/$(SolutionName)/Bundle diff --git a/vnext/local-cli/generator-windows/templates/cs/proj/MyApp.csproj b/vnext/local-cli/generator-windows/templates/cs/proj/MyApp.csproj index aebcefd3b2e..9208646ad14 100644 --- a/vnext/local-cli/generator-windows/templates/cs/proj/MyApp.csproj +++ b/vnext/local-cli/generator-windows/templates/cs/proj/MyApp.csproj @@ -116,6 +116,12 @@ true true + + true + + + false + PackageReference @@ -170,7 +176,7 @@ cd $(SolutionDir).. - npx --no-install react-native bundle --platform windows --entry-file index.js --bundle-output windows/$(SolutionName)/Bundle/index.windows.bundle --assets-dest windows/$(SolutionName)/Bundle + npx --no-install react-native bundle --platform windows --entry-file index.js --dev $(ReactNativeBundleDevMode) --bundle-output windows/$(SolutionName)/Bundle/index.windows.bundle --assets-dest windows/$(SolutionName)/Bundle