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: [
|
2023-04-18 15:10:33 +02:00
|
|
|
'./node_modules/@hyas/core/layouts/**/*.html',
|
|
|
|
'./node_modules/@hyas/seo/layouts/**/*.html',
|
|
|
|
'./node_modules/@hyas/images/layouts/**/*.html',
|
|
|
|
'./node_modules/@hyas/doks-core/layouts/**/*.html',
|
|
|
|
'./node_modules/@hyas/doks-core/content/**/*.html',
|
2020-04-15 15:48:16 +02:00
|
|
|
'./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',
|
2023-04-18 15:10:33 +02:00
|
|
|
'h1',
|
|
|
|
'h2',
|
|
|
|
'h3',
|
|
|
|
'h4',
|
2021-06-17 11:20:48 +02:00
|
|
|
'h5',
|
2021-07-05 10:58:06 +02:00
|
|
|
'alert-link',
|
2023-05-26 17:44:05 +02:00
|
|
|
'container-lg',
|
2022-01-28 09:15:47 +01:00
|
|
|
'container-fluid',
|
2022-06-10 16:36:39 +02:00
|
|
|
'offcanvas-backdrop',
|
2022-06-30 12:26:23 +02:00
|
|
|
'img-fluid',
|
|
|
|
'lazyload',
|
|
|
|
'blur-up',
|
2022-06-30 14:25:33 +02:00
|
|
|
'figcaption',
|
2023-05-23 14:55:30 +02:00
|
|
|
'dt',
|
|
|
|
'dd',
|
2023-05-26 17:44:05 +02:00
|
|
|
'showing',
|
|
|
|
'hiding',
|
2020-04-15 15:48:16 +02:00
|
|
|
...whitelister([
|
2023-04-18 15:10:33 +02:00
|
|
|
'./node_modules/@hyas/core/assets/scss/app.scss',
|
2023-05-23 14:55:30 +02:00
|
|
|
'./node_modules/@hyas/doks-core/assets/scss/common/_global.scss',
|
2023-04-18 15:10:33 +02:00
|
|
|
'./node_modules/@hyas/doks-core/assets/scss/components/_alerts.scss',
|
|
|
|
'./node_modules/@hyas/doks-core/assets/scss/components/_buttons.scss',
|
2023-05-23 14:55:30 +02:00
|
|
|
'./node_modules/@hyas/doks-core/assets/scss/components/_callouts.scss',
|
2023-04-18 15:10:33 +02:00
|
|
|
'./node_modules/@hyas/doks-core/assets/scss/components/_code.scss',
|
|
|
|
// './node_modules/@hyas/doks-core/assets/scss/components/_diagrams.scss',
|
|
|
|
'./node_modules/@hyas/doks-core/assets/scss/components/_modals.scss',
|
|
|
|
'./node_modules/@hyas/doks-core/assets/scss/components/_syntax.scss',
|
|
|
|
'./node_modules/@hyas/doks-core/assets/scss/components/_search.scss',
|
|
|
|
'./node_modules/@hyas/doks-core/assets/scss/common/_dark.scss',
|
2021-09-10 16:38:32 +02:00
|
|
|
'./node_modules/bootstrap/scss/_dropdown.scss',
|
2023-04-18 15:10:33 +02:00
|
|
|
// './node_modules/katex/dist/katex.css',
|
2020-04-15 15:48:16 +02:00
|
|
|
]),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
}
|