@aklesky/postcss-config
v1.0.1
Published
Postcss config presets
Readme
PostCSS Configuration Preset
Installation
npm
npm install @aklesky/postcss-configyarn
yarn add @aklesky/postcss-configUsage
tsconfig.json
{
// ...
"ts-node": {
"moduleTypes": {
"postcss.config.ts": "cjs"
}
},
//...
}postcss.config.ts
import setup from '@aklesky/postcss-config/config.js'
export default {
...setup(),
}Usage with @aklesky/tailwind-config
postcss.config.ts
import setup from '@aklesky/postcss-config/config.js'
import tailwind from '@aklesky/tailwind-config/plugin.js'
const config = setup({})
export default {
...config,
plugins: [...config.plugins, tailwind()],
}
