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

github.com/leonardofaria/bento.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Faria <leonardofaria@gmail.com>2020-11-28 06:22:41 +0300
committerLeonardo Faria <leonardofaria@gmail.com>2020-11-28 06:22:41 +0300
commit6b4e1155ecc6bcb43ac746b8acdfac5c6d2ccc72 (patch)
tree4f471acddcbc664ecd5351d47897cdfe1a0072ff
parent3931385308dd45733d3c962b1e74705cb92d10eb (diff)
Tweak PostCSS config
-rw-r--r--assets/css/dev/postcss.config.js25
-rw-r--r--assets/css/postcss.config.js25
-rw-r--r--assets/css/tailwind.config.js5
3 files changed, 9 insertions, 46 deletions
diff --git a/assets/css/dev/postcss.config.js b/assets/css/dev/postcss.config.js
index 48e0498..a2e5ef8 100644
--- a/assets/css/dev/postcss.config.js
+++ b/assets/css/dev/postcss.config.js
@@ -2,29 +2,8 @@ const themeDir = __dirname + '/../../../';
module.exports = {
plugins: [
- require('postcss-import')({
- path: [themeDir]
- }),
+ require('postcss-import')({ path: [themeDir] }),
require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'),
- // Configuration of purgecss for Tailwindcss
- // see https://tailwindcss.com/docs/controlling-file-size/#setting-up-purgecss
- // require('@fullhuman/postcss-purgecss')({
- // // Specify the paths to all of the template files in your project
- // content: [
- // themeDir + 'layouts/**/*.html',
- // themeDir + 'exampleSite/content/**/*.html',
- // 'layouts/**/*.html',
- // 'content/**/*.html',
- // 'content/**/*.md',
- // '**/*.md',
- // ],
- // // Include any special characters you're using in this regular expression
- // defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
- // fontFace: true,
- // safelist: [/article/]
- // }),
- require('autoprefixer')({
- grid: true
- }),
+ require('autoprefixer')(),
]
}
diff --git a/assets/css/postcss.config.js b/assets/css/postcss.config.js
index b51ea7f..400c58d 100644
--- a/assets/css/postcss.config.js
+++ b/assets/css/postcss.config.js
@@ -2,29 +2,8 @@ const themeDir = __dirname + '/../../';
module.exports = {
plugins: [
- require('postcss-import')({
- path: [themeDir]
- }),
+ require('postcss-import')({ path: [themeDir] }),
require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'),
- // Configuration of purgecss for Tailwindcss
- // see https://tailwindcss.com/docs/controlling-file-size/#setting-up-purgecss
- // require('@fullhuman/postcss-purgecss')({
- // // Specify the paths to all of the template files in your project
- // content: [
- // themeDir + 'layouts/**/*.html',
- // themeDir + 'exampleSite/content/**/*.html',
- // 'layouts/**/*.html',
- // 'content/**/*.html',
- // 'content/**/*.md',
- // '**/*.md',
- // ],
- // // Include any special characters you're using in this regular expression
- // defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
- // fontFace: true,
- // safelist: [/article/]
- // }),
- require('autoprefixer')({
- grid: true
- }),
+ require('autoprefixer')(),
]
}
diff --git a/assets/css/tailwind.config.js b/assets/css/tailwind.config.js
index a2eead4..0ad9a63 100644
--- a/assets/css/tailwind.config.js
+++ b/assets/css/tailwind.config.js
@@ -1,9 +1,14 @@
+const themeDir = __dirname + '/../../';
+
module.exports = {
purge: {
content: [
'./layouts/**/*.html',
'./content/**/*.md',
'./content/**/*.html',
+ themeDir + 'layouts/**/*.html',
+ themeDir + 'exampleSite/content/**/*.html',
+ themeDir + 'exampleSite/content/**/*.md',
],
},
theme: {