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:
Abdullah Mzaien 2021-12-16 20:36:48 +03:00 committed by GitHub
parent 3f3eceb16b
commit bb52818ebe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -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
};
```

View file

@ -11,6 +11,6 @@
"devDependencies": {
"astro": "^0.21.12",
"autoprefixer": "^10.4.0",
"tailwindcss": "^2.2.19"
"tailwindcss": "^3.0.5"
}
}

View file

@ -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}'],
};