Struct swc::config::JsMinifyOptions [−][src]
pub struct JsMinifyOptions {
pub compress: BoolOrObject<TerserCompressorOptions>,
pub mangle: BoolOrObject<MangleOptions>,
pub format: JsMinifyFormatOptions,
pub ecma: TerserEcmaVersion,
pub keep_classnames: bool,
pub keep_fnames: bool,
pub module: bool,
pub safari10: bool,
pub toplevel: bool,
pub source_map: BoolOrObject<TerserSourceMapOption>,
pub output_path: Option<String>,
pub inline_sources_content: bool,
}
Expand description
Second argument of minify
.
Fields
compress: BoolOrObject<TerserCompressorOptions>
mangle: BoolOrObject<MangleOptions>
format: JsMinifyFormatOptions
ecma: TerserEcmaVersion
keep_classnames: bool
keep_fnames: bool
module: bool
safari10: bool
toplevel: bool
source_map: BoolOrObject<TerserSourceMapOption>
output_path: Option<String>
inline_sources_content: bool
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for JsMinifyOptions
impl Send for JsMinifyOptions
impl Sync for JsMinifyOptions
impl Unpin for JsMinifyOptions
impl UnwindSafe for JsMinifyOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more