StyleStats 5.0.0
New features
- Custom Templates : you can custom output format with handlebars template.
- CSS PefromanceTest : Including test specs file, you can use like a webpagetest-api test.
Acknowledgments:
Thanks to marcelduran/webpagetest-api, which has been a great source of inspiration.
Changelog
- Added
--templateoption - Added
--specsoption - Added User Specified Selectors metric(default is
false) - Changed
--typeoption's name to--format - Removed
--simpleoption - Removed
--gzipoption,gzippedSizevalue istrueby default - Changed
--uaoption to--mobileoption. This UA is iOS 8 - Changed some metrics keys
uniqueFontFamily->uniqueFontFamiliesuniqueColor->uniqueColorsuniqueFontSize->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 agentUsage
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
