-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpostcss.config.js
29 lines (29 loc) · 989 Bytes
/
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
module.exports = {
plugins: [
require('postcss-import'),
require('tailwindcss/nesting'),
require('tailwindcss'),
require('postcss-nested'),
require('postcss-preset-env')({
stage: 1,
// Fix a bug
// https://github.com/nuxt-community/tailwindcss-module/issues/79#issuecomment-609693459
features: {
'focus-within-pseudo-class': false,
},
}),
process.env.NODE_ENV === 'prod' && require('@fullhuman/postcss-purgecss')({
content: [
'./resources/app/**/*.html',
'./src/**/*.cljs'
],
defaultExtractor: function(content) {
const v1 = content.match(/[A-Za-z0-9-_:/]+/g) || [];
const v2 = content.match(/[A-Za-z0-9-_/]+/g) || [];
const v3 = content.match(/[A-Za-z0-9-_:/.]+/g) || [];
const v4 = content.match(/[A-Za-z0-9-_/.]+/g) || [];
return v1.concat(v2).concat(v3).concat(v4);
}
})
]
}