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: bool,
pub output_path: Option<String>,
}
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: bool
output_path: Option<String>
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
type Output = T
type Output = T
Should always be Self