Skip to content

zephraph/postcss-process-comments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postcss-process-comments Build Status

Greenkeeper badge

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

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/ })]);

About

Extract text from css comments

Resources

License

Stars

Watchers

Forks

Packages

No packages published