nx/packages/web/docs/application-examples.md
2022-11-21 13:18:40 -05:00

44 lines
656 B
Markdown

## Examples
{% tabs %}
{% tab label="Simple Application" %}
Create an application named `my-app`:
```bash
nx g @nrwl/web:application my-app
```
{% /tab %}
{% tab label="Application using Vite as bundler" %}
Create an application named `my-app`:
```bash
nx g @nrwl/web:app my-app --bundler=vite
```
{% /tab %}
{% tab label="Specify directory" %}
Create an application named `my-app` in the `my-dir` directory:
```bash
nx g @nrwl/web:app my-app --directory=my-dir
```
{% /tab %}
{% tab label="Add tags" %}
Add tags to the application (used for linting).
```bash
nx g @nrwl/web:app my-app --tags=scope:admin,type:ui
```
{% /tab %}
{% /tabs %}