postcss-config-preset
v1.0.0
Published
Minko's PostCSS config preset
Downloads
126
Readme
postcss-config-preset
PostCSS 预设配置
内置插件
- postcss-import 非vite环境默认开启
- tailwindcss/nesting 默认开启
- tailwindcss 默认开启
- autoprefixer 默认开启
- postcss-pxtorem 按需启用
- postcss-pxtoviewport 按需启用
- postcss-preset-env nextjs环境默认开启
vite
import { definePlugins } from 'postcss-config-preset'
export default {
plugins: definePlugins(),
}
Nextjs
import { definePlugins } from 'postcss-config-preset/nextjs'
export default {
plugins: definePlugins(),
}