2022-06-15 07:51:47 +00: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',
|
|
|
|
],
|
|
|
|
safelist: [
|
|
|
|
'lazyloaded',
|
|
|
|
'table',
|
|
|
|
'thead',
|
|
|
|
'tbody',
|
|
|
|
'tr',
|
|
|
|
'th',
|
|
|
|
'td',
|
|
|
|
'h5',
|
|
|
|
'alert-link',
|
|
|
|
'container-xxl',
|
|
|
|
'container-fluid',
|
2022-07-14 04:29:54 +00:00
|
|
|
'offcanvas-backdrop',
|
|
|
|
'img-fluid',
|
|
|
|
'lazyload',
|
|
|
|
'blur-up',
|
|
|
|
'figcaption',
|
2022-06-15 07:51:47 +00:00
|
|
|
...whitelister([
|
|
|
|
'./assets/scss/components/_alerts.scss',
|
|
|
|
'./assets/scss/components/_buttons.scss',
|
|
|
|
'./assets/scss/components/_code.scss',
|
|
|
|
'./assets/scss/components/_diagrams.scss',
|
|
|
|
'./assets/scss/components/_syntax.scss',
|
|
|
|
'./assets/scss/components/_search.scss',
|
|
|
|
'./assets/scss/common/_dark.scss',
|
|
|
|
'./node_modules/bootstrap/scss/_dropdown.scss',
|
|
|
|
'./node_modules/katex/dist/katex.css',
|
|
|
|
]),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
}
|