diff options
author | WANG Chucheng <me@wangchucheng.com> | 2022-01-28 08:24:07 +0300 |
---|---|---|
committer | WANG Chucheng <me@wangchucheng.com> | 2022-01-28 08:24:07 +0300 |
commit | 72c35bec01c80baf75bcaf61b363ffe337ee7f2d (patch) | |
tree | e7814be0296b50d5b254868300416743c3cd5eb7 /assets | |
parent | 15493ce2560e6c36d53949a0534e4bdfa8acd1bc (diff) |
refactor: upgrade to Tailwind CSS v3v0.9.0
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/postcss.config.js | 3 | ||||
-rw-r--r-- | assets/css/tailwind.config.js | 16 |
2 files changed, 9 insertions, 10 deletions
diff --git a/assets/css/postcss.config.js b/assets/css/postcss.config.js index 121ed3f..9bbd93a 100644 --- a/assets/css/postcss.config.js +++ b/assets/css/postcss.config.js @@ -9,5 +9,8 @@ module.exports = { require('autoprefixer')({ path: [themeDir] }), + require('cssnano')({ + preset: 'default', + }), ] } diff --git a/assets/css/tailwind.config.js b/assets/css/tailwind.config.js index 405b7b0..43fad44 100644 --- a/assets/css/tailwind.config.js +++ b/assets/css/tailwind.config.js @@ -2,15 +2,12 @@ const themeDir = __dirname + '/../../'; module.exports = { important: true, - purge: { - enabled: process.env.HUGO_ENVIRONMENT === 'production', - content: [ - themeDir + 'layouts/**/*.html', - themeDir + 'exampleSite/content/**/*.html', - 'layouts/**/*.html', - 'content/**/*.html', - ], - }, + content: [ + themeDir + 'layouts/**/*.html', + themeDir + 'exampleSite/content/**/*.html', + 'layouts/**/*.html', + 'content/**/*.html', + ], theme: { fontFamily: { 'serif': ['Lora', 'Noto Serif SC', 'serif'], @@ -52,7 +49,6 @@ module.exports = { } } }, - variants: {}, plugins: [ require('tailwindcss-rtl') ] |