/
postcss.config.js
39 lines (36 loc) · 948 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
38
39
// const purgecss = require('@fullhuman/postcss-purgecss')({
// content: [
// './src/**/*.html',
// './src/**/*.vue',
// './src/**/*.jsx'
// ],
// defaultExtractor: content => {
// const broadMatches = content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || []
// const innerMatches = content.match(/[^<>"'`\s.()]*[^<>"'`\s.():]/g) || []
// return broadMatches.concat(innerMatches)
// }
// })
// module.exports = {
// plugins: [
// require('tailwindcss'),
// require('autoprefixer'),
// ...process.env.NODE_ENV === 'production'
// ? [purgecss]
// : []
// ]
// }
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
require('@fullhuman/postcss-purgecss')({
content: [
'./**/*.html',
'./**/*.pug',
'./**/*.jsx',
'./**/*.vue'
],
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
})
]
}