Skip to content

The release bundle builds should have --dev false flag #4276

@namrog84

Description

@namrog84

see:

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.js --bundle-output windows/$(SolutionName)/Bundle/index.windows.bundle --assets-dest windows/$(SolutionName)/Bundle

If running this command:
npx react-native bundle --help

you can see its defaulting to true
...
--dev [boolean] If false, warnings are disabled and the bundle is minified (default: true)
...

This is what can help lead to some 'yellow box' warnings appearing in release builds.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions