Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.11 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.11 KB

Work in progress

PostCSS Stream Build Status

PostCSS plugin add support stream.

Add support to postcss stream api.

const postcssStream = require('postcss-stream');

const stream1 = postcssStream.createStream({
  // select only nodes with type="decl" prop="color" value="red"
  decl: {
      prop: "color",
      value: "red",
      enter(decl) {
        decl.value = "green";
      }
  }
});

postcssStream([
  stream, ...
]);

Documentation in process.

##Reimplementation existing postcss-plugins: Original: postcss-color-function
Stream: postcss-color-function

Original: postcss-grid
Stream: postcss-grid