assets-analyser
v0.2.1
Published
Analyses given files and reports back with compressed/uncompressed file sizes and custom reports.
Downloads
3
Readme
assets-analyser
This is currently under development
Analyses given files and reports back with compressed/uncompressed file sizes and custom reports.
This module was inspired and based up grunt-asset-monitor from the Guardian team and Patrick Hamman
Options
analysers
Type: Array
Default: ['css', 'js']
By default, asset-analyser will return the size of each file. This is a list of additional analysis tools for various file types.
files
Type: String|Array
Default: Required
Location of files to be analysed - works with glob matching so /**/*.js
will work.
gzipLevel
Type: Number
Default: 6
Level of GZip compression to use to generate compressed file size output.
quiet
Type: Boolean
Default: false
Disables logging of information - only shows errors.