Filestack Documentation

Class Minify​JSTransform

public class MinifyJSTransform: Transform  

Minifies your JavaScript files.

MinifyJSTransform MinifyJSTransform Transform Transform MinifyJSTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a MinifyJSTransform object.

Methods

booleans(_:​)

@discardableResult
    func booleans(_ value: Bool) -> Self  

Adds the booleans option.

Parameters

value Bool

Whether to enable booleans option or not.

built​Ins(_:​)

@discardableResult
    func builtIns(_ value: Bool) -> Self  

Adds the builtIns option.

Parameters

value Bool

Whether to enable builtIns option or not.

consecutive​Adds(_:​)

@discardableResult
    func consecutiveAdds(_ value: Bool) -> Self  

Adds the consecutiveAdds option.

Parameters

value Bool

Whether to enable consecutiveAdds option or not.

deadcode(_:​)

@discardableResult
    func deadcode(_ value: Bool) -> Self  

Adds the deadcode option.

Parameters

value Bool

Whether to enable deadcode option or not.

evaluate(_:​)

@discardableResult
    func evaluate(_ value: Bool) -> Self  

Adds the evaluate option.

Parameters

value Bool

Whether to enable evaluate option or not.

flip​Comparisons(_:​)

@discardableResult
    func flipComparisons(_ value: Bool) -> Self  

Adds the flipComparisons option.

Parameters

value Bool

Whether to enable flipComparisons option or not.

guards(_:​)

@discardableResult
    func guards(_ value: Bool) -> Self  

Adds the guards option.

Parameters

value Bool

Whether to enable guards option or not.

infinity(_:​)

@discardableResult
    func infinity(_ value: Bool) -> Self  

Adds the infinity option.

Parameters

value Bool

Whether to enable infinity option or not.

mangle(_:​)

@discardableResult
    func mangle(_ value: Bool) -> Self  

Adds the mangle option.

Parameters

value Bool

Whether to enable mangle option or not.

member​Expressions(_:​)

@discardableResult
    func memberExpressions(_ value: Bool) -> Self  

Adds the memberExpressions option.

Parameters

value Bool

Whether to enable memberExpressions option or not.

merge​Vars(_:​)

@discardableResult
    func mergeVars(_ value: Bool) -> Self  

Adds the mergeVars option.

Parameters

value Bool

Whether to enable mergeVars option or not.

numeric​Literals(_:​)

@discardableResult
    func numericLiterals(_ value: Bool) -> Self  

Adds the numericLiterals option.

Parameters

value Bool

Whether to enable numericLiterals option or not.

property​Literals(_:​)

@discardableResult
    func propertyLiterals(_ value: Bool) -> Self  

Adds the propertyLiterals option.

Parameters

value Bool

Whether to enable propertyLiterals option or not.

regexp​Constructors(_:​)

@discardableResult
    func regexpConstructors(_ value: Bool) -> Self  

Adds the regexpConstructors option.

Parameters

value Bool

Whether to enable regexpConstructors option or not.

remove​Console(_:​)

@discardableResult
    func removeConsole(_ value: Bool) -> Self  

Adds the removeConsole option.

Parameters

value Bool

Whether to enable removeConsole option or not.

remove​Debugger(_:​)

@discardableResult
    func removeDebugger(_ value: Bool) -> Self  

Adds the removeDebugger option.

Parameters

value Bool

Whether to enable removeDebugger option or not.

remove​Undefined(_:​)

@discardableResult
    func removeUndefined(_ value: Bool) -> Self  

Adds the removeUndefined option.

Parameters

value Bool

Whether to enable removeUndefined option or not.

simplify(_:​)

@discardableResult
    func simplify(_ value: Bool) -> Self  

Adds the simplify option.

Parameters

value Bool

Whether to enable simplify option or not.

simplify​Comparisons(_:​)

@discardableResult
    func simplifyComparisons(_ value: Bool) -> Self  

Adds the simplifyComparisons option.

Parameters

value Bool

Whether to enable simplifyComparisons option or not.

type​Constructors(_:​)

@discardableResult
    func typeConstructors(_ value: Bool) -> Self  

Adds the typeConstructors option.

Parameters

value Bool

Whether to enable typeConstructors option or not.

undefined​ToVoid(_:​)

@discardableResult
    func undefinedToVoid(_ value: Bool) -> Self  

Adds the undefinedToVoid option.

Parameters

value Bool

Whether to enable undefinedToVoid option or not.