postcss-no-singleline-comment

discard single line comment from css

Usage no npm install needed!

<script type="module">
  import postcssNoSinglelineComment from 'https://cdn.skypack.dev/postcss-no-singleline-comment';
</script>

README

postcss-no-singleline-comment

Intro

A postcss plugin to remove single line comment in css.

input:

.main {
  // display: block;
  display: flex;
}

output:

.main {
  display: flex;
}

Installation

npm i -D postcss-no-singleline-comment

Usage

// in .postcssrc.js
module.exports = {
  plugins: [require('postcss-no-singleline-comment')]
}