Сompares the work of CSS minimizers.
$ git clone https://github.com/eGavr/cmb.git
$ cd cmb
$ npm installJust run:
$ bin/cmbMore details:
$ bin/cmb --help
Сompares the work of CSS minimizers
Usage:
cmb [OPTIONS]
Options:
-h, --help : Help
-v, --version : Shows the version number
-o OUTPUT, --output=OUTPUT : Path to the result output fileGo to the configuration file. In this file you can configure paths with the help of these variables:
toRawCSS- the path to tests — raw, not minimized CSS files.toMinCSS- the path where to output minimized CSS files.toArchCSS- the path where to output archived CSS files.
1. Go to the package.json and add your minimizer to the dependencies.
2. Go to the configuration file and add your code according to the following template:
name: minimize(require('module'), 'method')where:
name- the name of your minimizer (it will be used in the log).module- the required module of your minimizer.method- the name of the minimization method of your minimizer (the method which recieves a raw CSS and minifies it).
3. Reinstall the dependencies.
$ npm install4. See the usage.
1. Go to the configuration file and add your code according to the following template:
name: archive('bash script', 'suffix')where:
name- the name of your archiver (it will be used in the log).bash scriptwhich archives the file.
This script provides keyword[FILE_PATH]. When you run the benchmark, it will be replaced with the paths of all files which were minimized by all specified in the configuration file minimizers.suffixwhich is added to a file by the archiver.
2. See the usage.