postcss-optional-comments
Support for conditional comments using PostCSS.
What does this do?
This plugin allows you to choose which comments will appear in your css output using a simple not operator, /*!
, in the opening syntax of a CSS comment.
Example
input.css:
/*! This comment will be removed! *//* This comment will be kept! */
output.css:
/* This comment will be kept! */
Installation
postcss-optional-comments is freely available to download from github or install via NPM.
Install using NPM:
npm i --save-dev postcss-optional-comments
Usage
Gulp
Use with gulp-postcss
module.
gulp;
Todo
- Support single line comments
Contributing
Feel free to submit a pull request!