Strip comments from CSS
JavaScript CSS
Switch branches/tags
Clone or download
Latest commit ac32c3a Dec 17, 2015
Permalink
Failed to load latest commit information.
.editorconfig init Aug 10, 2015
.gitattributes init Aug 10, 2015
.gitignore init Aug 10, 2015
.travis.yml tweaks - minimum Node.js version is now v4 Nov 14, 2015
cli.js 🐐 Nov 19, 2015
fixture.css init Aug 10, 2015
license init Aug 10, 2015
package.json 2.0.2 Nov 19, 2015
readme.md Update readme.md Dec 17, 2015
test.js tweaks - minimum Node.js version is now v4 Nov 14, 2015

readme.md

strip-css-comments-cli Build Status

Strip comments from CSS

Install

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

Usage

$ strip-css-comments --help

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

  Options
    --preserve=<regex>  Preserve comments matching a regex [Default: ^!]
    --no-preserve       Strip all comments including `/*!`

  Examples
    $ strip-css-comments src/app.css > dist/app.css
    $ strip-css-comments < src/app.css --preserve='^#'

Related

License

MIT © Sindre Sorhus