Releases: macbre/analyze-css
Releases · macbre/analyze-css
v0.6.0
This release brings a reporting of line and column of an issue reported in the offenders - se #25.
A new metric has been added - redundantChildNodesSelectors
(see #51). It will report redundant selectors for child nodes, for instance .foo ul li
.
There are two bug fixes to redundantBodySelectors
metric - #49 and #51
Here's the full list of new features and bug fixes:
- #25 - Report line and column of CSS "issue" in offenders
- #49 -
body
not always redundant
- #51 - Redundant selectors for child nodes (suggested by @gmetais)
- #52 - @font-face interpreted as a duplicated selector
v0.5.0
This release brings an experimental support for analyzing SCSS files via libsass binding for Node.js (see #3),
Simply pass a *.scss
file to analyze-css
. SASS preprocessor will be used automatically (based on the file extension).
analyze-css --file examples/base.scss --pretty
Here's the full list of new features:
- #3 - Add support for analyzing SASS files
- #41 - Report CSS
@import
- #44 - Relax redundant body selector rule
- #46 - Code coverage via instanbul
v0.4.1
This minor release brings updated npm dependencies and prefixes data from autoprefixer.
v0.4.0
Next release of analyze-css brings two new metrics:
- #7 - Add number of "complex" selectors by attribute metric
- #13 - Add multiple classes metric
v0.3.0
This release brings the following new, shiny features:
- #8 - Report the use of
expression
- #9 - Report a redundant
body
selector
- #23 - Report more old IE / Firefox specific hacks
- #28 - Allow reading CSS from stdin
- #31 - Tests improved
- #32 - Update dependencies
- #33 - Support media queries
- #35 - Add
--ignore-ssl-errors
flag. (by @plasticine)
v0.2.0
This release brings you the following:
- #2 - Report outdated CSS prefixes
- #4 - CSS Specificity (as suggested by @plasticine)
- #5 - Add universal selector metric
- #10 - Improve error reporting
- #15 - Rules with comments should be treated as an empty ones
- #17 - Report duplicated selectors
- #18 - Report total length of base64-encoded data
First release
First release of analyze-css
, a tool used by phantomas for gathering CSS performance and complexity metrics.