Skip to content

@extended selectors moved with split styles #9

@dotherightthing

Description

@dotherightthing

@Extended selectors are being moved to the split stylesheet when they should be left behind.

In this example, I wish to move only .split-me to split-me.css:

// INPUT

// _demo.scss
%silent_shared {
    color: red;
}
.split-me {
    @extend %silent_shared;
}
.do-not-split-me {
    @extend %silent_shared;
}

// main.scss
@import "demo";

// OUTPUT - expected

// main.css
.do-not-split-me {
    color: red;
}

// split-me.css
.split-me {
    color: red;
}

// OUTPUT - actual

// main.css
// empty

// split-me.css
.split-me, .do-not-split-me {
    color: red;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions