0.0.1 • Published 6 years ago

docz-plugin-postcss v0.0.1

Weekly downloads
107
License
MIT
Repository
github
Last release
6 years ago

version downloads MIT License

PRs Welcome

Watch on GitHub Star on GitHub Tweet

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