portails/config/postcss.config.js

24 lines
557 B
JavaScript

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',
]),
],
}),
],
}