-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
postcss.config.js
48 lines (48 loc) · 1.17 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
plugins: {
'postcss-import': {},
'postcss-flexbugs-fixes': {},
'postcss-focus-visible': {},
'tailwindcss/nesting': {},
tailwindcss: {
config: './tailwind.config.js',
},
'postcss-font-magician': {
variants: {
'Source Sans Pro': {
400: [ 'woff2', 'latin' ],
'400 italic': [ 'woff2', 'latin' ],
'700 italic': [ 'woff2', 'latin' ],
700: [ 'woff2', 'latin' ],
},
},
aliases: {
'sans-serif': 'Source Sans Pro',
},
foundries: [ 'google' ],
},
'postcss-preset-env': {
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
features: {
'custom-properties': false,
'nesting-rules': true,
},
},
// '@fullhuman/postcss-purgecss':
// {
// content: [
// './src/pages/**/*.{js,jsx,ts,tsx}',
// './src/features/**/*.{js,jsx,ts,tsx}',
// './src/components/**/*.{js,jsx,ts,tsx}',
// './src/wp-blocks/**/*.{js,jsx,ts,tsx}',
// './src/wp-templates/**/*.{js,jsx,ts,tsx}',
// ],
// defaultExtractor: ( content ) => content.match( /[\w-/:]+(?<!:)/g ) || [],
// safelist: [ 'html', 'body' ],
// },
...( process.env.NODE_ENV === 'production' ? { cssnano: {} } : {} ),
},
};