postcss-remove-inline-comments
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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')
  ]
}

Package Sidebar

Install

npm i postcss-remove-inline-comments

Weekly Downloads

17

Version

0.0.2

License

MIT

Unpacked Size

4.19 kB

Total Files

6

Last publish

Collaborators

  • hezulong1