Skip to content

Commit 1b18ac1

Browse files
committed
ensure that we include the @latest tags
Yarn can correctly use the latest version automatically. For some reason NPM itself can't, even after running `npm cache clean --force`, which should clean the cache. It's a bit unfortunate to include this extra bloat, but what can you do... Fixes: #675
1 parent 032c328 commit 1b18ac1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

remark/withPrevalInstructions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function createPrevals({ tool: pageTool = error('UNKNOWN') } = {}) {
198198
version = 'latest',
199199
}) {
200200
let knownDependencies = {
201-
latest: ['tailwindcss', 'postcss', 'autoprefixer'],
201+
latest: ['tailwindcss@latest', 'postcss@latest', 'autoprefixer@latest'],
202202
'compat-7': [
203203
'tailwindcss@npm:@tailwindcss/postcss7-compat',
204204
'postcss@^7',

src/pages/docs/installation.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ If this is a bit over your head and you'd like to try Tailwind without configuri
3636
For most projects (and to take advantage of Tailwind's customization features), you'll want to install Tailwind and its peer-dependencies via npm.
3737

3838
```shell
39-
npm install tailwindcss postcss autoprefixer
39+
npm install tailwindcss@latest postcss@latest autoprefixer@latest
4040
```
4141

4242
Since Tailwind [does not automatically add vendor prefixes](/docs/browser-support#vendor-prefixes) to the CSS it generates, we recommend installing [autoprefixer](https://github.com/postcss/autoprefixer) to handle this for you like we've shown in the snippet above.

0 commit comments

Comments
 (0)