whoisvadym / eleventy-plugin-postcss

Eleventy plugin for PostCSS library
11 stars 2 forks source link

Eleventy plugin for Postcss

A small plugin for @11ty/eventy that enables the support for PostCSS pre-processor in you eleventy project.

Requirements

Features

Usage

  1. Install: npm install --save-dev eleventy-plugin-postcss
  2. Add the following lines to the .eleventy.js:
    
    // Import the plugin
    const PostCSSPlugin = require("eleventy-plugin-postcss");

module.exports = (config) => { // Enable the plugin in you project config.addPlugin(PostCSSPlugin); }


3. (Optional) Create a `.postcssrc.{json,yml,...}` config file for additional configuration. ([more info](#configuration)).

## Configuration
To load and resolve the configuration file the plugin uses [`postcss-load-config`](https://github.com/postcss/postcss-load-config) module. Check out the project [readme](https://github.com/postcss/postcss-load-config#readme) for the complete list of supported config file formats.

## Contribute
Feel free to open a Github issue for suggestions, bug reports, feature requests.