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