pub struct TreeShakeConfig {
pub enabled: bool,
pub remove_unused_responsive: bool,
pub remove_unused_conditional: bool,
pub remove_unused_custom: bool,
pub keep_classes: HashSet<String>,
pub remove_classes: HashSet<String>,
pub analyze_dependencies: bool,
}Expand description
Configuration for tree-shaking
Fields§
§enabled: boolWhether to enable tree-shaking
remove_unused_responsive: boolWhether to remove unused responsive variants
remove_unused_conditional: boolWhether to remove unused conditional classes
remove_unused_custom: boolWhether to remove unused custom properties
keep_classes: HashSet<String>Classes to always keep (whitelist)
remove_classes: HashSet<String>Classes to always remove (blacklist)
analyze_dependencies: boolWhether to analyze dependencies between classes
Trait Implementations§
Source§impl Clone for TreeShakeConfig
impl Clone for TreeShakeConfig
Source§fn clone(&self) -> TreeShakeConfig
fn clone(&self) -> TreeShakeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TreeShakeConfig
impl Debug for TreeShakeConfig
Auto Trait Implementations§
impl Freeze for TreeShakeConfig
impl RefUnwindSafe for TreeShakeConfig
impl Send for TreeShakeConfig
impl Sync for TreeShakeConfig
impl Unpin for TreeShakeConfig
impl UnwindSafe for TreeShakeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more