postcss.config.ts 489 B

123456789101112131415
  1. import config from '.';
  2. export default {
  3. plugins: {
  4. ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {}),
  5. // Specifying the config is not necessary in most cases, but it is included
  6. autoprefixer: {},
  7. // 修复 element-plus 和 ant-design-vue 的样式和tailwindcss冲突问题
  8. 'postcss-antd-fixes': { prefixes: ['ant', 'el'] },
  9. 'postcss-import': {},
  10. 'postcss-preset-env': {},
  11. tailwindcss: { config },
  12. 'tailwindcss/nesting': {},
  13. },
  14. };