Skip to content

StyleStats 5.0.0

Compare
Choose a tag to compare
@t32k t32k released this 16 Feb 18:27
· 168 commits to master since this release

New features

Acknowledgments:

Thanks to marcelduran/webpagetest-api, which has been a great source of inspiration.

Changelog

  • Added --template option
  • Added --specs option
  • Added User Specified Selectors metric(default is false)
  • Changed --type option's name to --format
  • Removed --simple option
  • Removed --gzip option, gzippedSize value is true by default
  • Changed --ua option to --mobile option. This UA is iOS 8
  • Changed some metrics keys
    • uniqueFontFamily -> uniqueFontFamilies
    • uniqueColor -> uniqueColors
    • uniqueFontSize -> uniqueFontSizes

Default configuration:

New CLI info

$ stylestats --help

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

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -c, --config [path]    set configurations
    -f, --format [format]  set the output format <json|html|md|csv>
    -t, --template [path]  set the template path for output formant
    -s, --specs [path]     run test with your test specs file
    -n, --number           show only numeral metrics
    -m, --mobile           set the mobile user agent

Usage

template:

$ stylestats path/to/example.css -t path/to/handlebars.hbs

test specs:

$ stylestats path/to/example.css -s path/to/testspecs.json

on Travis CI

More information