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

github.com/h-enk/doks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/postcss.config.js')
-rw-r--r--config/postcss.config.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/config/postcss.config.js b/config/postcss.config.js
new file mode 100644
index 0000000..fc4e43d
--- /dev/null
+++ b/config/postcss.config.js
@@ -0,0 +1,23 @@
+const autoprefixer = require('autoprefixer')
+const purgecss = require('@fullhuman/postcss-purgecss')
+const whitelister = require('purgecss-whitelister');
+
+module.exports = {
+ plugins: [
+ autoprefixer(),
+ purgecss({
+ content: [
+ './layouts/**/*.html',
+ './content/**/*.md',
+ ],
+ whitelist: [
+ 'lazyloaded',
+ ...whitelister([
+ './assets/sass/common/_dark.scss',
+ './assets/sass/common/_syntax.scss',
+ './assets/sass/components/_code.scss',
+ ]),
+ ],
+ }),
+ ],
+}