invidious.io/config/postcss.config.js

36 lines
1.1 KiB
JavaScript
Raw Normal View History

2021-03-18 10:50:09 -04:00
const autoprefixer = require('autoprefixer');
const purgecss = require('@fullhuman/postcss-purgecss');
const whitelister = require('purgecss-whitelister');
module.exports = {
plugins: [
autoprefixer(),
purgecss({
content: [
2021-03-18 11:09:27 -04:00
'./node_modules/@hyas/doks/layouts/**/*.html',
'./node_modules/@hyas/doks/content/**/*.md',
2021-03-18 10:50:09 -04:00
'./layouts/**/*.html',
'./content/**/*.md',
],
safelist: [
'lazyloaded',
'table',
'thead',
'tbody',
'tr',
'th',
'td',
...whitelister([
2021-03-18 11:09:27 -04:00
'./node_modules/@hyas/doks/assets/scss/common/_variables.scss',
2021-03-26 06:55:49 -04:00
'./node_modules/@hyas/doks/assets/scss/components/_doks.scss',
2021-03-18 11:09:27 -04:00
'./node_modules/@hyas/doks/assets/scss/components/_code.scss',
2021-03-26 07:07:52 -04:00
'./node_modules/@hyas/doks/assets/scss/components/_buttons.scss',
2021-03-26 06:55:49 -04:00
'./node_modules/@hyas/doks/assets/scss/components/_search.scss',
'./node_modules/@hyas/doks/assets/scss/common/_dark.scss',
2021-03-18 10:50:09 -04:00
'./node_modules/katex/dist/katex.css',
]),
],
}),
],
}