From 2aea439e1321ceebd9d18e9cd5b836c4b50ebb98 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 24 Dec 2022 20:00:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7tailwindCSS=203.2.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +++--- tailwind.config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index ad6de107..e7b1d90c 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ }, "devDependencies": { "@waline/client": "^2.5.1", - "autoprefixer": "^10.2.5", + "autoprefixer": "^10.4.13", "eslint": "^7.26.0", "eslint-config-next": "^11.0.0", "eslint-config-standard": "^16.0.2", @@ -67,8 +67,8 @@ "eslint-plugin-promise": "^5.1.0", "eslint-plugin-react": "^7.23.2", "next-sitemap": "^1.6.203", - "postcss": "^8.2.15", - "tailwindcss": "^2.1.2", + "postcss": "^8.4.20", + "tailwindcss": "^3.2.4", "webpack-bundle-analyzer": "^4.5.0" }, "resolutions": { diff --git a/tailwind.config.js b/tailwind.config.js index 5079e173..0c5e4a68 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,7 +2,7 @@ const BLOG = require('./blog.config') const { fontFamilies } = require('./lib/font') module.exports = { - purge: ['./pages/**/*.js', './components/**/*.js', './layouts/**/*.js', './themes/**/*.js'], + content: ['./pages/**/*.js', './components/**/*.js', './layouts/**/*.js', './themes/**/*.js'], darkMode: BLOG.APPEARANCE === 'class' ? 'media' : 'class', // or 'media' or 'class' theme: { fontFamily: fontFamilies,