Blame view

Yi.Vben5.Vue3/internal/tailwind-config/src/postcss.config.ts 489 Bytes
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  import config from '.';
  
  export default {
    plugins: {
      ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {}),
      // Specifying the config is not necessary in most cases, but it is included
      autoprefixer: {},
      // 修复 element-plus 和 ant-design-vue 的样式和tailwindcss冲突问题
      'postcss-antd-fixes': { prefixes: ['ant', 'el'] },
      'postcss-import': {},
      'postcss-preset-env': {},
      tailwindcss: { config },
      'tailwindcss/nesting': {},
    },
  };