pub struct BuildConfig {
pub input: Vec<String>,
pub output: String,
pub watch: bool,
pub minify: bool,
pub source_maps: bool,
pub purge: bool,
pub additional_css: Vec<String>,
pub postcss_plugins: Vec<String>,
}
Expand description
Build configuration for tailwind-rs
Fields§
§input: Vec<String>
Input paths for source files
output: String
Output path for CSS file
watch: bool
Watch mode for development
minify: bool
Minify output CSS
source_maps: bool
Source maps generation
purge: bool
Purge unused CSS
additional_css: Vec<String>
Additional CSS to include
postcss_plugins: Vec<String>
PostCSS plugins
Implementations§
Source§impl BuildConfig
impl BuildConfig
Sourcepub fn set_output(&mut self, path: impl Into<String>)
pub fn set_output(&mut self, path: impl Into<String>)
Set the output path
Sourcepub fn enable_watch(&mut self)
pub fn enable_watch(&mut self)
Enable watch mode
Sourcepub fn disable_watch(&mut self)
pub fn disable_watch(&mut self)
Disable watch mode
Sourcepub fn enable_minify(&mut self)
pub fn enable_minify(&mut self)
Enable minification
Sourcepub fn disable_minify(&mut self)
pub fn disable_minify(&mut self)
Disable minification
Sourcepub fn enable_source_maps(&mut self)
pub fn enable_source_maps(&mut self)
Enable source maps
Sourcepub fn disable_source_maps(&mut self)
pub fn disable_source_maps(&mut self)
Disable source maps
Sourcepub fn enable_purge(&mut self)
pub fn enable_purge(&mut self)
Enable CSS purging
Sourcepub fn disable_purge(&mut self)
pub fn disable_purge(&mut self)
Disable CSS purging
Sourcepub fn add_additional_css(&mut self, css: impl Into<String>)
pub fn add_additional_css(&mut self, css: impl Into<String>)
Add additional CSS
Sourcepub fn add_postcss_plugin(&mut self, plugin: impl Into<String>)
pub fn add_postcss_plugin(&mut self, plugin: impl Into<String>)
Add a PostCSS plugin
Trait Implementations§
Source§impl Clone for BuildConfig
impl Clone for BuildConfig
Source§fn clone(&self) -> BuildConfig
fn clone(&self) -> BuildConfig
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 BuildConfig
impl Debug for BuildConfig
Source§impl Default for BuildConfig
impl Default for BuildConfig
Source§impl<'de> Deserialize<'de> for BuildConfig
impl<'de> Deserialize<'de> for BuildConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BuildConfig
impl PartialEq for BuildConfig
Source§impl Serialize for BuildConfig
impl Serialize for BuildConfig
impl StructuralPartialEq for BuildConfig
Auto Trait Implementations§
impl Freeze for BuildConfig
impl RefUnwindSafe for BuildConfig
impl Send for BuildConfig
impl Sync for BuildConfig
impl Unpin for BuildConfig
impl UnwindSafe for BuildConfig
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