MinifyJSTransform
public class MinifyJSTransform : Transform
Minifies your JavaScript files.
-
Initializes a
MinifyJSTransform
object.Declaration
Swift
public init()
-
Adds the
booleans
option.Declaration
Swift
@discardableResult func booleans(_ value: Bool) -> Self
Parameters
value
Whether to enable
booleans
option or not. -
Adds the
builtIns
option.Declaration
Swift
@discardableResult func builtIns(_ value: Bool) -> Self
Parameters
value
Whether to enable
builtIns
option or not. -
Adds the
consecutiveAdds
option.Declaration
Swift
@discardableResult func consecutiveAdds(_ value: Bool) -> Self
Parameters
value
Whether to enable
consecutiveAdds
option or not. -
Adds the
deadcode
option.Declaration
Swift
@discardableResult func deadcode(_ value: Bool) -> Self
Parameters
value
Whether to enable
deadcode
option or not. -
Adds the
evaluate
option.Declaration
Swift
@discardableResult func evaluate(_ value: Bool) -> Self
Parameters
value
Whether to enable
evaluate
option or not. -
Adds the
flipComparisons
option.Declaration
Swift
@discardableResult func flipComparisons(_ value: Bool) -> Self
Parameters
value
Whether to enable
flipComparisons
option or not. -
Adds the
guards
option.Declaration
Swift
@discardableResult func guards(_ value: Bool) -> Self
Parameters
value
Whether to enable
guards
option or not. -
Adds the
infinity
option.Declaration
Swift
@discardableResult func infinity(_ value: Bool) -> Self
Parameters
value
Whether to enable
infinity
option or not. -
Adds the
mangle
option.Declaration
Swift
@discardableResult func mangle(_ value: Bool) -> Self
Parameters
value
Whether to enable
mangle
option or not. -
Adds the
memberExpressions
option.Declaration
Swift
@discardableResult func memberExpressions(_ value: Bool) -> Self
Parameters
value
Whether to enable
memberExpressions
option or not. -
Adds the
mergeVars
option.Declaration
Swift
@discardableResult func mergeVars(_ value: Bool) -> Self
Parameters
value
Whether to enable
mergeVars
option or not. -
Adds the
numericLiterals
option.Declaration
Swift
@discardableResult func numericLiterals(_ value: Bool) -> Self
Parameters
value
Whether to enable
numericLiterals
option or not. -
Adds the
propertyLiterals
option.Declaration
Swift
@discardableResult func propertyLiterals(_ value: Bool) -> Self
Parameters
value
Whether to enable
propertyLiterals
option or not. -
Adds the
regexpConstructors
option.Declaration
Swift
@discardableResult func regexpConstructors(_ value: Bool) -> Self
Parameters
value
Whether to enable
regexpConstructors
option or not. -
Adds the
removeConsole
option.Declaration
Swift
@discardableResult func removeConsole(_ value: Bool) -> Self
Parameters
value
Whether to enable
removeConsole
option or not. -
Adds the
removeDebugger
option.Declaration
Swift
@discardableResult func removeDebugger(_ value: Bool) -> Self
Parameters
value
Whether to enable
removeDebugger
option or not. -
Adds the
removeUndefined
option.Declaration
Swift
@discardableResult func removeUndefined(_ value: Bool) -> Self
Parameters
value
Whether to enable
removeUndefined
option or not. -
Adds the
simplify
option.Declaration
Swift
@discardableResult func simplify(_ value: Bool) -> Self
Parameters
value
Whether to enable
simplify
option or not. -
Adds the
simplifyComparisons
option.Declaration
Swift
@discardableResult func simplifyComparisons(_ value: Bool) -> Self
Parameters
value
Whether to enable
simplifyComparisons
option or not. -
Adds the
typeConstructors
option.Declaration
Swift
@discardableResult func typeConstructors(_ value: Bool) -> Self
Parameters
value
Whether to enable
typeConstructors
option or not. -
Adds the
undefinedToVoid
option.Declaration
Swift
@discardableResult func undefinedToVoid(_ value: Bool) -> Self
Parameters
value
Whether to enable
undefinedToVoid
option or not.