-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpostcss.config.mjs
42 lines (41 loc) · 1.57 KB
/
postcss.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import autoprefixer from 'autoprefixer';
import {purgeCSSPlugin} from '@fullhuman/postcss-purgecss';
export default function (ctx) {
return {
plugins: [
autoprefixer(),
purgeCSSPlugin({
content: [
'app/**/*.php',
'resources/**/*.js',
'resources/**/*.php',
'vendor/babdev/laravel-breadcrumbs/**/*.php',
],
defaultExtractor: (content) => content.match(/[\w-/.:]+(?<!:)/g) || [],
// Allow highlight styles and styles used only in docs
safelist: {
standard: [
// highlight.js
/^.hljs/, /^.hljs-/, /^hljs/, /^hljs-/,
// SVG styling
/svg/,
// Bootstrap Tables
/^.table/, /^.table-/, /^table/, /^tr/, /^td/, /^th/, /^thead/, /^tbody/, /^tfoot/,
// App styles
/^docs-note/,
],
deep: [
// highlight.js
/^.hljs/, /^.hljs-/, /^hljs/, /^hljs-/,
// SVG styling
/svg/,
// Bootstrap Tables
/^.table/, /^.table-/, /^table/, /^tr/, /^td/, /^th/, /^thead/, /^tbody/, /^tfoot/,
// App styles
/^docs-note/,
],
},
}),
],
};
}