Open
Description
Would it be possible to not output styles that aren't used when composing classes?
For example:
main.css
.foo {
background: purple;
composes: abc from "./other.css";
}
other.css
.abc {
color: blue;
}
.xyz { /* note: unused */
border: 10px solid red;
}
main.js
var styles = require('./main.css');
output css
.PyjhzcC6jE { /* .foo */
background: purple;
}
.xGcJd4AVqt { /* .abc */
color: blue;
}
See also this failing test: #12
This functionality would be great when composing just a single class from a large css file. I'd be interested in helping implement this.
Metadata
Metadata
Assignees
Labels
No labels