nx/packages/react/docs/application-examples.md
Isaac Mann afa5eb59fa
docs(core): document the @nrwl => @nx rescope (#16403)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-04-27 18:14:59 -04:00

715 B

Examples

{% tabs %} {% tab label="Simple Application" %}

Create an application named my-app:

nx g @nx/react:application my-app

{% /tab %}

{% tab label="Application using Vite as bundler" %}

Create an application named my-app:

nx g @nx/react:app my-app --bundler=vite

{% /tab %}

{% tab label="Specify directory and style extension" %}

Create an application named my-app in the my-dir directory and use scss for styles:

nx g @nx/react:app my-app --directory=my-dir --style=scss

{% /tab %}

{% tab label="Add tags" %}

Add tags to the application (used for linting).

nx g @nx/react:app my-app --tags=scope:admin,type:ui

{% /tab %} {% /tabs %}