portails/config/postcss.config.js

24 lines
557 B
JavaScript
Raw Normal View History

2020-04-15 15:48:16 +02:00
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',
]),
],
}),
],
}