forked from redwoodjs/redwoodjs-com-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.js
37 lines (37 loc) · 946 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
30
31
32
33
34
35
36
37
module.exports = {
plugins: [
require('postcss-import'),
require('tailwindcss'),
require('postcss-nested'),
require('autoprefixer'),
process.env.NODE_ENV === 'production' &&
require('@fullhuman/postcss-purgecss')({
content: ['./publish/**/*.html'],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
whitelist: [
'tab-active',
'searchresult',
'md:flex',
'md:w-1/3',
'md:w-2/3',
'border-b',
'hover:bg-red-100',
'absolute',
'right-0',
'bottom-0',
'm-2',
'text-xs',
'text-gray-500',
'text-red-500',
'hover:text-gray-400',
'bg-gray-800',
'hover:bg-gray-700',
'px-1',
'rounded',
'focus:outline-none',
'transition',
'duration-100',
],
}),
],
}