postcss-remove-inline-comments
A plugin to remove inline CSS comments from compilation. It Forked from postcss-strip-inline-comments, Because there are some warnings in postcss@8
.
/* This comment will remain */
// This comment will be removed
body {
// This comment will also be removed
background-color: black;
}
// And so will this one
Usage
You need to have a compliant parser, currently either postcss-scss or sugarss already parsing your postcss for this plugin to work.
Install
npm install postcss-remove-inline-comments --save-dev
postcss.config.js
module.exports = {
parse: require('postcss-scss'),
plugins: [
require('postcss-remove-inline-comments')
]
}