@nx/react-native:web-configuration

Setup web configuration to React Native apps using react-native-web.

Usage

1nx generate web-configuration ... 2

By default, Nx will search for web-configuration in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

1nx g @nx/react-native:web-configuration ... 2

Show what will be generated without writing to disk:

1nx g web-configuration ... --dry-run 2

Options

bundler

Required
string
Default: vite
Accepted values: vite, webpack

The bundler to use.

project

Required
string

Project for which to generate web configuration.

skipFormat

Internal
boolean
Default: false

Skip formatting files.

skipPackageJson

Internal
boolean
Default: false

Do not add dependencies to package.json.