JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 48361
  • Score
    100M100P100Q165567F
  • License MIT

Strip comments from CSS

Package Exports

  • strip-css-comments

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strip-css-comments) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

strip-css-comments Build Status

Strip comments from CSS

Also available as a gulp/grunt/broccoli plugin.

Usage

$ npm install --save strip-css-comments
var stripCssComments = require('strip-css-comments');

stripCssComments('body { /* unicorns */color: hotpink; }');
//=> body { color: hotpink; }

CLI

$ npm install --global strip-css-comments
$ strip-css-comments --help

  Usage
    strip-css-comments <input-file> > <output-file>
    strip-css-comments < <input-string>

  Example
    strip-css-comments src/app.css > dist/app.css

License

MIT © Sindre Sorhus