Skip to content

Commit

Permalink
docs: update configPath documentation (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
udithishara authored Mar 15, 2021
1 parent 31b7e92 commit a133848
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/content/en/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ export default {
}
```

<alert type="info">

If you customized the [`srcDir`](https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-srcdir/) property, you'll have to update `configPath` as `configPath: '~~/tailwind.config.js'` (~~ is the alias for rootDir) for the `tailwind.config.js` to be recognized properly. Read more in the [Issue #114](https://github.com/nuxt-community/tailwindcss-module/issues/114#issuecomment-698885369).

</alert>

## `exposeConfig`

If you need resolved tailwind config in runtime, you can enable exposeConfig option in nuxt.config:
Expand Down

0 comments on commit a133848

Please sign in to comment.