-
Notifications
You must be signed in to change notification settings - Fork 243
Closed
Description
I am implementing a CSS minifier with my custom logics. Using the crates from this repository to parse my code and minify. I am using that kind of code to minify.
match component {
// Other match arms that using lightningcss::traits::ToCss
_=>{
// Using cssparser::ToCss as a fallback for other match arms
write!(&mut component_str, "{}", component.to_css_string()).unwrap();
}
}This code gave me an error. Because PseudoElement is throwing an unreachable!() error when converting to string. Then I tried to use the ToCss trait from lightningcss crate. But the exposed parcel_selectors::parser::PseudoElement trait not implemented to the lightningcss::traits::ToCss. Is there any existing workaround to fix it. If not can you implement ToCss to PseudoElement?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels