mirror of
https://github.com/iv-org/invidious.io.git
synced 2024-12-29 09:36:18 -05:00
36 lines
1002 B
JavaScript
36 lines
1002 B
JavaScript
const autoprefixer = require('autoprefixer');
|
|
const purgecss = require('@fullhuman/postcss-purgecss');
|
|
const whitelister = require('purgecss-whitelister');
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
autoprefixer(),
|
|
purgecss({
|
|
content: [
|
|
'./node_modules/@hyas/doks/layouts/**/*.html',
|
|
'./node_modules/@hyas/doks/content/**/*.md',
|
|
'./layouts/**/*.html',
|
|
'./content/**/*.md',
|
|
],
|
|
safelist: [
|
|
'lazyloaded',
|
|
'table',
|
|
'thead',
|
|
'tbody',
|
|
'tr',
|
|
'th',
|
|
'td',
|
|
...whitelister([
|
|
'./node_modules/@hyas/doks/assets/scss/common/_variables.scss',
|
|
'./node_modules/@hyas/doks/assets/scss/components/_code.scss',
|
|
'./assets/scss/components/_doks.scss',
|
|
'./assets/scss/components/_code.scss',
|
|
'./assets/scss/components/_search.scss',
|
|
'./assets/scss/common/_dark.scss',
|
|
'./node_modules/katex/dist/katex.css',
|
|
]),
|
|
],
|
|
}),
|
|
],
|
|
}
|