portails/config/postcss.config.js

60 lines
1.9 KiB
JavaScript
Raw Normal View History

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-09-08 17:51:40 +02:00
'./node_modules/@hyas/*/layouts/**/*.html',
'./themes/*/layouts/**/*.html',
2020-04-15 15:48:16 +02:00
'./layouts/**/*.html',
2023-09-08 17:51:40 +02:00
'./content/**/*.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',
'alert-link',
2023-05-26 17:44:05 +02:00
'container-lg',
'container-fluid',
'offcanvas-backdrop',
'img-fluid',
'lazyload',
'blur-up',
'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
]),
],
}),
],
}