postcss-process-comments
v1.0.1
Published
A postcss plugin to process text from css comment
Downloads
3
Readme
postcss-process-comments
A plugin to process text from css comments
API
- options
- process [function] Required
- Method to process the comment matching pattern. Receives a postcss comment node as an argument.
- pattern [regex]
- Pattern to filter comments on for processing
- process [function] Required
Usage
import processComment from 'postcss-process-comments';
import postcss from 'postcss';
const process = ({ text }) => console.log(text);
// Prints all comments
postcss([ processComment({ process }) ]);
// prints all comments starting with the test TEST
postcss([ processComment({ process, pattern: /^TEST/ })]);