sindresorhus / strip-css-comments-cli

Strip comments from CSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strip-css-comments-cli

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

About

Strip comments from CSS

License:MIT License


Languages

Language:JavaScript 99.2%Language:CSS 0.8%