forked from facade/ignition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.js
29 lines (28 loc) · 1.01 KB
/
postcss.config.js
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
const purgecss = require('@fullhuman/postcss-purgecss');
module.exports = {
plugins: [
require('postcss-import'),
require('tailwindcss')('./tailwind.config.js'),
require('postcss-preset-env')(),
process.env.NODE_ENV === 'production'
? purgecss({
content: [
'./resources/js/**/*.js',
'./resources/js/**/*.vue',
'./resources/views/errorPage.php',
],
extractors: [
{
extractor: class {
static extract(content) {
return content.match(/[a-zA-Z0-9-:_/]+/g) || [];
}
},
extensions: ['js', 'php', 'vue'],
},
],
whitelistPatterns: [/hljs/, /sf-dump/, /theme-dark/, /theme-auto/],
})
: '',
],
};