mirror of
https://github.com/teableio/teable.git
synced 2026-02-19 17:19:50 +08:00
37 lines
989 B
JavaScript
37 lines
989 B
JavaScript
// 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;
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
plugins: {
|
|
tailwindcss: {
|
|
config: path.join(__dirname, 'tailwind.config.js'),
|
|
},
|
|
...(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,
|
|
},
|
|
},
|
|
}
|
|
: {}),
|
|
},
|
|
};
|