PostCSS strip inline comments
A plugin to remove inline CSS comments from compilation.
/* This comment will remain */// This comment will be removed body // 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-strip-inline-comments --save-dev
Grunt
grunt;
Gulp
var gulp = ;var postcss = ;var stripInlineComments = ;var scss = ; gulp;
Webpack
var stripInlineComments = ; var config = ... module: loaders: test: /\.s?css$/ loader: ExtractTextPlugin { return stripInlineComments ; } ...
Node
;;; let css = fs; ;