forked from belgattitude/nextjs-monorepo-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostcss.config.js
33 lines (31 loc) · 896 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
// Customized postcss
// @link https://nextjs.org/docs/advanced-features/customizing-postcss-config
// @link https://tailwindcss.com/docs/using-with-preprocessors
const isProd = process.env.NODE_ENV === 'production';
const supportsIE11 = false;
const enableCssGrid = false;
module.exports = {
plugins: {
tailwindcss: {},
...(isProd
? {
'postcss-flexbugs-fixes': {},
'postcss-preset-env': {
autoprefixer: {
flexbox: 'no-2009',
// https://github.com/postcss/autoprefixer#does-autoprefixer-polyfill-grid-layout-for-ie
...(enableCssGrid
? {
grid: 'autoplace',
}
: {}),
},
stage: 3,
features: {
'custom-properties': supportsIE11,
},
},
}
: {}),
},
};