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([
|
2020-04-15 16:17:16 +02:00
|
|
|
'./assets/scss/common/_dark.scss',
|
|
|
|
'./assets/scss/common/_syntax.scss',
|
|
|
|
'./assets/scss/components/_code.scss',
|
2020-04-15 15:48:16 +02:00
|
|
|
]),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
}
|