Skip to content

Commit 088c7d6

Browse files
committedDec 17, 2023
fix tailwindcss version
1 parent dfee62c commit 088c7d6

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"postcss-preset-env": "6.x",
7575
"prettier": "^2.4.1",
7676
"tailwind-scrollbar": "^2.0.0",
77-
"tailwindcss": "^2.2.19",
77+
"tailwindcss": "^3.3.6",
7878
"typescript": "4.x",
7979
"vitest": "^0.34.6"
8080
}

‎postcss.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
module.exports = {
2-
plugins: [require('tailwindcss'), require('postcss-preset-env')],
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
36
}

‎src/index.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
@import 'tailwindcss/base';
2-
@import 'tailwindcss/components';
3-
@import 'tailwindcss/utilities';
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

‎tailwind.config.js

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const tailwindScrollbar = require('tailwind-scrollbar')
22

3+
/** @type {import('tailwindcss').Config} */
34
module.exports = {
5+
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
46
theme: {
57
extend: {
68
animation: {
@@ -13,13 +15,4 @@ module.exports = {
1315
},
1416
variants: {},
1517
plugins: [tailwindScrollbar],
16-
purge: {
17-
// Filenames to scan for classes
18-
content: ['./src/**/*.{js,ts,jsx,tsx}', './index.html'],
19-
// Options passed to PurgeCSS
20-
options: {
21-
// Whitelist specific selectors by name
22-
// safelist: [],
23-
},
24-
},
2518
}

0 commit comments

Comments
 (0)
Please sign in to comment.