chore: update tailwind to v3 and update the readme (#2209)
using `.cjs` for file extensions chore: update tailwind to v3 and update the readme
This commit is contained in:
parent
3f3eceb16b
commit
bb52818ebe
3 changed files with 3 additions and 5 deletions
|
@ -211,8 +211,7 @@ And create 2 files in your project root: `tailwind.config.cjs` and `postcss.conf
|
||||||
```js
|
```js
|
||||||
// tailwind.config.cjs
|
// tailwind.config.cjs
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'jit',
|
content: ['./public/**/*.html', './src/**/*.{astro,js,jsx,svelte,ts,tsx,vue}'],
|
||||||
purge: ['./public/**/*.html', './src/**/*.{astro,js,jsx,svelte,ts,tsx,vue}'],
|
|
||||||
// more options here
|
// more options here
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.21.12",
|
"astro": "^0.21.12",
|
||||||
"autoprefixer": "^10.4.0",
|
"autoprefixer": "^10.4.0",
|
||||||
"tailwindcss": "^2.2.19"
|
"tailwindcss": "^3.0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'jit',
|
content: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
|
||||||
purge: ['./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'],
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue