2021-03-18 15:50:09 +01: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 16:09:27 +01:00
|
|
|
'./node_modules/@hyas/doks/layouts/**/*.html',
|
|
|
|
'./node_modules/@hyas/doks/content/**/*.md',
|
2021-03-18 15:50:09 +01:00
|
|
|
'./layouts/**/*.html',
|
|
|
|
'./content/**/*.md',
|
|
|
|
],
|
|
|
|
safelist: [
|
|
|
|
'lazyloaded',
|
|
|
|
'table',
|
|
|
|
'thead',
|
|
|
|
'tbody',
|
|
|
|
'tr',
|
|
|
|
'th',
|
|
|
|
'td',
|
2021-06-25 16:49:17 +02:00
|
|
|
'h5',
|
2021-09-07 13:04:58 +02:00
|
|
|
'alert-link',
|
2021-03-18 15:50:09 +01:00
|
|
|
...whitelister([
|
2021-03-18 16:09:27 +01:00
|
|
|
'./node_modules/@hyas/doks/assets/scss/common/_variables.scss',
|
2021-03-26 12:07:52 +01:00
|
|
|
'./node_modules/@hyas/doks/assets/scss/components/_buttons.scss',
|
2021-06-25 16:49:17 +02:00
|
|
|
'./node_modules/@hyas/doks/assets/scss/components/_code.scss',
|
|
|
|
'./node_modules/@hyas/doks/assets/scss/components/_syntax.scss',
|
2021-03-26 11:55:49 +01:00
|
|
|
'./node_modules/@hyas/doks/assets/scss/components/_search.scss',
|
|
|
|
'./node_modules/@hyas/doks/assets/scss/common/_dark.scss',
|
2021-03-18 15:50:09 +01:00
|
|
|
'./node_modules/katex/dist/katex.css',
|
|
|
|
]),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
}
|