nx/packages/angular/docs/setup-tailwind-examples.md
2022-10-10 13:24:47 +00:00

657 B

Examples

The setup-tailwind generator can be used to add Tailwind configuration to apps and publishable libraries.

{% tabs %}

{% tab label="Standard Setup" %}

To generate a standard Tailwind setup, just run the following command.

nx g @nrwl/angular:setup-tailwind myapp

{% /tab %}

{% tab label="Specifying the Styles Entrypoint" %}

To specify the styles file that should be used as the entrypoint for Tailwind, simply pass the --stylesEntryPoint flag, relative to workspace root.

nx g @nrwl/angular:setup-tailwind myapp --stylesEntryPoint=apps/myapp/src/styles.css

{% /tab %}

{% /tabs %}