Skip to content

Add compiling method that groups styles by Selector #12

@RussellBishop

Description

@RussellBishop

Currently we get our compiled CSS to group by property: value.

.c-component {
  property-1: A;
  property-2: B;
}

We can try using a postCSS plugin that will do this for us (hopefully).

First run:
https://github.com/Cheppers/postcss-expand-selectors

Then:
https://www.npmjs.com/package/postcss-combine-duplicated-selectors

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions