Skip to content

Commit

Permalink
chore: update tailwind to v3 and update the readme (withastro#2209)
Browse files Browse the repository at this point in the history
using `.cjs` for file extensions

chore: update tailwind to v3 and update the readme
  • Loading branch information
mzaien committed Dec 16, 2021
1 parent 3f3eceb commit bb52818
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/src/pages/guides/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ And create 2 files in your project root: `tailwind.config.cjs` and `postcss.conf
```js
// tailwind.config.cjs
module.exports = {
mode: 'jit',
purge: ['./public/**/*.html', './src/**/*.{astro,js,jsx,svelte,ts,tsx,vue}'],
content: ['./public/**/*.html', './src/**/*.{astro,js,jsx,svelte,ts,tsx,vue}'],
// more options here
};
```
Expand Down
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"devDependencies": {
"astro": "^0.21.12",
"autoprefixer": "^10.4.0",
"tailwindcss": "^2.2.19"
"tailwindcss": "^3.0.5"
}
}
3 changes: 1 addition & 2 deletions examples/with-tailwindcss/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module.exports = {
mode: 'jit',
purge: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
content: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
};

0 comments on commit bb52818

Please sign in to comment.