Skip to content

Commit 3563ebf

Browse files
committed
add safelist for dark mode
1 parent abd4938 commit 3563ebf

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

tailwind.config.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
module.exports = {
2-
purge: [
3-
"./pages/**/*.{js,ts,jsx,tsx}",
4-
"./components/**/*.{js,ts,jsx,tsx}",
5-
"./out/**/*.{js,ts,jsx,tsx,html,css}",
6-
],
2+
purge: {
3+
enabled: true,
4+
content: [
5+
"./pages/**/*.{js,ts,jsx,tsx}",
6+
"./components/**/*.{js,ts,jsx,tsx}",
7+
],
8+
options: {
9+
safelist: ["dark"],
10+
},
11+
},
712
darkMode: "class",
813
variants: {
914
extend: {

0 commit comments

Comments
 (0)