docz-plugin-postcss
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Docz Plugin PostCSS

docz logo postcss logo

Zero configuration PostCSS plugin for Docz


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

Package Sidebar

Install

npm i docz-plugin-postcss

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

7.97 kB

Total Files

11

Last publish

Collaborators

  • andreasonny83