- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello chaps and chapettes,
I have never found an answer to this before so if you can shed some light a massive thank you to you in advance.
Okay so is it possible in anyway whatsoever to compile specified SASS/SCSS, and exclude everything else within that SASS/SCSS file? A similar method would be Jacket, however by excluding everything that isn’t found within a “jacket”. What I really don’t want to do however is wrap the unwanted classes in another “jacket” (I already know how to achieve this method).
Example (based on Jacket):
// Start of SCSS file
$jacket: iwantthis;
.foo-that-i-dont-want {
background-color: gray;
}
@include jacket(iwantthis) {
.i-want-this-and-only-this {
background-color: red;
}
}
// End of SCSS
// Start of desired compiled CSS file
.i-want-this-and-only-this {
background-color: red;
}
// End of CSS
Cheers!
To the best of my knowledge, NO you can’t compile (or not) part of a file.
You could just split out that part to another file and make sure that partial file is or isn’t compiled with the rest.
Hello again Paulie
Yes I thought so this is my current working method.
Thanks.
UnCSS looks pretty interesting, thanks for this.