0.1.1 • Published 8 years ago

postcss-plugin-composition v0.1.1

Weekly downloads
190
License
MIT
Repository
github
Last release
8 years ago

PostCSS Plugin Composition Build Status

PostCSS plugin which holds other PostCSS plugins.

Usage

const composition = require('postcss-plugin-composition');
postcss([
  composition([
    require('postcss-simple-vars')
    require('postcss-modules')
  ]),

  require('postcss-autoreset')
])

This module has very specific use-case. If you apply all plugins as is with postcss-modules. You will see at the end your css repeated, because postcss-modules executes all modules for you.

That is why need to create composition of plugins that should be applied to each file. And to the end add plugins which whill be applied to result.