PostCSS 预设配置
- postcss-import 非vite环境默认开启
- tailwindcss/nesting 默认开启
- tailwindcss 默认开启
- autoprefixer 默认开启
- postcss-pxtorem 按需启用
- postcss-pxtoviewport 按需启用
- postcss-preset-env nextjs环境默认开启
import { definePlugins } from 'postcss-config-preset'
export default {
plugins: definePlugins(),
}
import { definePlugins } from 'postcss-config-preset/nextjs'
export default {
plugins: definePlugins(),
}