Docz Plugin PostCSS
Zero configuration PostCSS plugin for Docz
![MIT License](https://img.shields.io/npm/l/docz-plugin-postcss.svg?style=flat-square)
![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)
![Tweet](https://img.shields.io/twitter/url/https/github.com/andreasonny83/docz-plugin-postcss.svg?style=social)
Install
Install docz-plugin-postcss
using npm:
npm i -D docz-plugin-postcss
Or using Yarn with:
yarn add --dev docz-plugin-postcss
Usage
Just import the plugin inside your doczrc.js
import { postCSSPlugin } from 'docz-plugin-postcss';
export default {
plugins: [postCSSPlugin()],
};
Custom configuration
This project uses PostCSS Preset Env. You can pass a custom configuration according to the PostCSS Preset Env documentation.
Eg.
import { postCSSPlugin } from 'docz-plugin-postcss';
export default {
plugins: [
postCSSPlugin({
stage: 3,
features: {
'nesting-rules': true,
},
}),
],
};
License
MIT License © Andrea SonnY