2020-12-02 13:49:08 +01:00
|
|
|
const autoprefixer = require('autoprefixer');
|
|
|
|
const purgecss = require('@fullhuman/postcss-purgecss');
|
2020-04-15 15:48:16 +02:00
|
|
|
const whitelister = require('purgecss-whitelister');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
plugins: [
|
|
|
|
autoprefixer(),
|
|
|
|
purgecss({
|
|
|
|
content: [
|
|
|
|
'./layouts/**/*.html',
|
2021-03-05 14:27:36 +01:00
|
|
|
'./content/**/*.md',
|
2020-04-15 15:48:16 +02:00
|
|
|
],
|
2020-11-04 08:26:58 +01:00
|
|
|
safelist: [
|
2020-04-15 15:48:16 +02:00
|
|
|
'lazyloaded',
|
2021-03-05 14:27:36 +01:00
|
|
|
'table',
|
|
|
|
'thead',
|
|
|
|
'tbody',
|
|
|
|
'tr',
|
|
|
|
'th',
|
|
|
|
'td',
|
2021-06-17 11:20:48 +02:00
|
|
|
'h5',
|
2021-07-05 10:58:06 +02:00
|
|
|
'alert-link',
|
2020-04-15 15:48:16 +02:00
|
|
|
...whitelister([
|
2022-01-14 12:14:35 +01:00
|
|
|
'./assets/scss/components/_alerts.scss',
|
2021-06-17 11:20:48 +02:00
|
|
|
'./assets/scss/components/_buttons.scss',
|
2020-04-15 16:17:16 +02:00
|
|
|
'./assets/scss/components/_code.scss',
|
2021-06-30 15:16:45 +02:00
|
|
|
'./assets/scss/components/_diagrams.scss',
|
2021-06-15 16:27:38 +02:00
|
|
|
'./assets/scss/components/_syntax.scss',
|
2020-11-04 08:26:58 +01:00
|
|
|
'./assets/scss/components/_search.scss',
|
|
|
|
'./assets/scss/common/_dark.scss',
|
2021-09-10 16:38:32 +02:00
|
|
|
'./node_modules/bootstrap/scss/_dropdown.scss',
|
2021-03-16 15:20:01 +01:00
|
|
|
'./node_modules/katex/dist/katex.css',
|
2020-04-15 15:48:16 +02:00
|
|
|
]),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
}
|