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-03 08:21:04 +0300
committerLeonardo Faria <leonardofaria@gmail.com>2020-11-03 08:21:04 +0300
commit4edc82d67d5ddcb14017adb8b7948514a34fa705 (patch)
tree5360dd11ec974dddd613dd377b6307a5e41c3603
parent63e6624cb984a8c74d55948091b846f0632b4a1d (diff)
Update dev postcss config
-rw-r--r--assets/css/dev/postcss.config.js35
1 files changed, 27 insertions, 8 deletions
diff --git a/assets/css/dev/postcss.config.js b/assets/css/dev/postcss.config.js
index 8f547b9..ccbc2b5 100644
--- a/assets/css/dev/postcss.config.js
+++ b/assets/css/dev/postcss.config.js
@@ -1,11 +1,30 @@
const themeDir = __dirname + '/../../../';
-module.exports = {
- plugins: [
- require('postcss-import')({
- path: [themeDir]
- }),
- require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'),
- require('autoprefixer'),
- ]
+module.exports = {
+ plugins: [
+ 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',
+ ],
+ // Include any special characters you're using in this regular expression
+ defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
+ fontFace: true,
+ whitelistPatternsChildren: [/article/]
+ }),
+ require('autoprefixer')({
+ grid: true
+ }),
+ require('postcss-reporter'),
+ ]
}