Releases: ChristianMurphy/postcss-combine-duplicated-selectors
Releases · ChristianMurphy/postcss-combine-duplicated-selectors
Logical Grouping
Matching selectors that have different text order but same logical meaning are now grouped.
E.G.
.one.two {} .two.one {}
becomes
.one.two {}
Testing
- Added tests for different textual ordering
- Added tests for pseudo classes
- Added tests for psuedo elements
- Restructured tests to separate unique selector tests and duplicated selector tests
- Restructured tests to separate css tests from less/scss tests.
Chores
- Updated dependencies
- Added script to ensure release will always have latest built code
Attribute Selectors
Matching selectors with attributes can now be combined.
README now includes a usage guide.
Testing
- Selector attribute tests
Linting
- Check Javascript import statements for correctness
Tests and Fixes
New Tests:
- Multiple declarations @eirslett
- Nested selectors
- Sibling selectors
Fix:
- Resolved issue with multiple declarations not being copied correctly
Chores:
- Move tests into test macros
- Updated project dependencies
Mixed Spacing
Plugin can now group selectors with different spacing between each statement.
Hello World!
Support for combining groups that have identical selectors.