Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorWANG Chucheng <me@wangchucheng.com>2022-01-28 08:24:07 +0300
committerWANG Chucheng <me@wangchucheng.com>2022-01-28 08:24:07 +0300
commit72c35bec01c80baf75bcaf61b363ffe337ee7f2d (patch)
treee7814be0296b50d5b254868300416743c3cd5eb7 /assets
parent15493ce2560e6c36d53949a0534e4bdfa8acd1bc (diff)
refactor: upgrade to Tailwind CSS v3v0.9.0
Diffstat (limited to 'assets')
-rw-r--r--assets/css/postcss.config.js3
-rw-r--r--assets/css/tailwind.config.js16
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')
]