@minko-fe/postcss-config
v1.0.1
Published
postcss-config
Downloads
65
Readme
postcss-config
Usage
postcss.config.js
vite
import { definePlugins } from '@minko-fe/postcss-config/vite'
export default {
plugins: definePlugins({
'postcss-import': true, // default. if vite, set false
'tailwindcss/nesting': true, // default
'tailwindcss': true, // default
'postcss-pxtorem': {}, // set if you need
'postcss-pxtoviewport': {}, // set if you need
'postcss-preset-env': {}, // default
})
}
next.js
import { definePlugins } from '@minko-fe/postcss-config/nextjs'
export default {
plugins: definePlugins({
'postcss-import': true, // default. if next.js, set false
'tailwindcss/nesting': true, // default
'tailwindcss': true, // default
'postcss-pxtorem': {}, // set if you need
'postcss-pxtoviewport': {}, // set if you need
'postcss-preset-env': {}, // default
})
}