Skip to content

Commit

Permalink
docs: update tailwind v2 using yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Dec 4, 2020
1 parent 87b3a6c commit 8ea24c6
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions docs/content/en/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,24 +87,17 @@ See the [module options](/options).
Nuxt 2.14 is still using PostCSS 7, we have a [pull request](https://github.com/nuxt/nuxt.js/pull/8346) opened to upgrade the dependencies. Once merged on `v2.15`, we will release a major version of this module to include TailwindCSS 2, see [PR#203](https://github.com/nuxt-community/tailwindcss-module/pull/203).
In the meantime, you can upgrade Tailwind by using the [compatibily build](https://tailwindcss.com/docs/installation#post-css-7-compatibility-build):
In the meantime, you can upgrade Tailwind by using the [compatibily build](https://tailwindcss.com/docs/installation#post-css-7-compatibility-build).
<code-group>
<code-block label="Yarn" active>
<alert type="warning">
```bash
yarn add --dev tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9
```
</code-block>
<code-block label="NPM">
We have seen an issue with NPM regarding the packages resolution (see [comment](https://github.com/nuxt-community/tailwindcss-module/issues/202#issuecomment-738442349)), we hightly recommend to use [Yarn V1](https://classic.yarnpkg.com/en/docs/install) when working with Nuxt 2.
```bash
npm install --save-dev tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9
```
</alert>
</code-block>
</code-group>
```bash
yarn add --dev tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9
```
Please ensure you are using `Node >= 12.13.0` in order to use the version 2 of TailwindCSS.
Expand Down

0 comments on commit 8ea24c6

Please sign in to comment.