-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpostcss.config.js
More file actions
32 lines (28 loc) · 801 Bytes
/
postcss.config.js
File metadata and controls
32 lines (28 loc) · 801 Bytes
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
const purgecss = require('@fullhuman/postcss-purgecss')({
// Specify the paths to all of the template files in your project
content: [
'./components/**/*.html',
'./components/**/*.vue',
'./components/**/*.js',
'./layouts/**/*.html',
'./layouts/**/*.vue',
'./layouts/**/*.js',
'./pages/**/*.html',
'./pages/**/*.vue',
'./pages/**/*.js',
// etc.
],
// whitelist for prismjs
whitelistPatternsChildren: [/^token/, /^pre/, /^code/],
// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
})
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
...process.env.NODE_ENV === 'production'
? [purgecss]
: []
]
}