shm-open / code-push-cli

A fork of code-push-cli tool to work with open source code-push-server
https://github.com/shm-open/code-push-cli
Other
44 stars 36 forks source link

set minify to false in react-native cli #68

Closed alirezarayej closed 2 years ago

alirezarayej commented 2 years ago

if minify set true react change class's names to shorter name. Some package like typeorm (in migrations) need Specific class name to work. so we need set minify false to react don't change variables names.

ryanypm commented 2 years ago

Is it possible to provide an optional parameter to adapt to different scenarios?

ryanypm commented 2 years ago

if minify set true react change class's names to shorter name. Some package like typeorm (in migrations) need Specific class name to work. so we need set minify false to react don't change variables names.

75 has provided optional parameters, did it solve your problem? If you don't need minify, you can do this: --extraBundlerOptions=--minify false; If hermes is enabled, use:--extraHermesFlags; Both parameters can be viewed with the latest version code-push release-react --help.

alirezarayej commented 2 years ago

yes solved. Thank you!