aboutsummaryrefslogtreecommitdiff

CSS_lib

css_lib is a library for OCaml which allow to work with CSS file. The library is build on top on css-parser.

Installation

The repository is hosted at this location : http://git.chimrod.com/css_lib.git/. You can install the library with opam :

opam pin add https://git.chimrod.com/css_lib.git

css_merge

css_merge is a standalone program which combine multiple css document into a single one. It produce a minified output resulting of all the document.

Usage

css_merge --out ${out_file} file1.css file2.css 

The file file1.css and file2.css will be combined together, the rule from file2.css overrides the one given in file1.css.

Example

body, p {
    color: "black";
}

body, a {
    color: "red";

}

will become

p{color:"black"}a,body{color:"red"}