Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 839 Bytes

File metadata and controls

48 lines (33 loc) · 839 Bytes

Tool for beautify CSS

Installation

npm install csscomb

To run csscomb, you can use the following command from the project root:

./node_modules/.bin/csscomb path[ path[...]]
$ ./node_modules/.bin/csscomb --help

  Usage: csscomb [options] <file ...>

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -c, --config [path]  configuration file path

Configuration

csscomb is configured using .csscomb.json file, located in the project root.

Example configuration:

{
    "exclude": ["node_modules/**"],
    "colon-space": true,
    "stick-brace": true,
    "strip-spaces": true
}

Tests

Run npm test for tests.

Other projects