csscomb-join-similar-rules

0.1.1 • Public • Published

CSSComb.js option for joining the rules with the same selectors

join-similar-rules

Acceptable value: true.

Example: { "join-similar-rules": true }

/* before */
a { width: 10px; }
a { height: 10px; }
 
/* after */
a { width: 10px;  height: 10px; }
 

Usage

This is a plugin for CSSComb.js, to learn how to use it read the corresponding docs.

Features

  • Joins equal selectors.
  • Inserts missing semicolons between joined declarations.
  • Works for multiple selectors in different order.
  • Leaves untouched selectors if there is anything between them.

Known issues

There won't be any whitespaces between the joined declarations, so you should use space-between-declarations to set it if you'll need it.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.12latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.12
0.1.01
0.0.11

Package Sidebar

Install

npm i csscomb-join-similar-rules

Weekly Downloads

4

Version

0.1.1

License

MIT

Last publish

Collaborators

  • kizu