MinifyJSTransform
public class MinifyJSTransform : Transform
Minifies your JavaScript files.
-
Initializes a
MinifyJSTransformobject.Declaration
Swift
public init()
-
Adds the
booleansoption.Declaration
Swift
@discardableResult func booleans(_ value: Bool) -> SelfParameters
valueWhether to enable
booleansoption or not. -
Adds the
builtInsoption.Declaration
Swift
@discardableResult func builtIns(_ value: Bool) -> SelfParameters
valueWhether to enable
builtInsoption or not. -
Adds the
consecutiveAddsoption.Declaration
Swift
@discardableResult func consecutiveAdds(_ value: Bool) -> SelfParameters
valueWhether to enable
consecutiveAddsoption or not. -
Adds the
deadcodeoption.Declaration
Swift
@discardableResult func deadcode(_ value: Bool) -> SelfParameters
valueWhether to enable
deadcodeoption or not. -
Adds the
evaluateoption.Declaration
Swift
@discardableResult func evaluate(_ value: Bool) -> SelfParameters
valueWhether to enable
evaluateoption or not. -
Adds the
flipComparisonsoption.Declaration
Swift
@discardableResult func flipComparisons(_ value: Bool) -> SelfParameters
valueWhether to enable
flipComparisonsoption or not. -
Adds the
guardsoption.Declaration
Swift
@discardableResult func guards(_ value: Bool) -> SelfParameters
valueWhether to enable
guardsoption or not. -
Adds the
infinityoption.Declaration
Swift
@discardableResult func infinity(_ value: Bool) -> SelfParameters
valueWhether to enable
infinityoption or not. -
Adds the
mangleoption.Declaration
Swift
@discardableResult func mangle(_ value: Bool) -> SelfParameters
valueWhether to enable
mangleoption or not. -
Adds the
memberExpressionsoption.Declaration
Swift
@discardableResult func memberExpressions(_ value: Bool) -> SelfParameters
valueWhether to enable
memberExpressionsoption or not. -
Adds the
mergeVarsoption.Declaration
Swift
@discardableResult func mergeVars(_ value: Bool) -> SelfParameters
valueWhether to enable
mergeVarsoption or not. -
Adds the
numericLiteralsoption.Declaration
Swift
@discardableResult func numericLiterals(_ value: Bool) -> SelfParameters
valueWhether to enable
numericLiteralsoption or not. -
Adds the
propertyLiteralsoption.Declaration
Swift
@discardableResult func propertyLiterals(_ value: Bool) -> SelfParameters
valueWhether to enable
propertyLiteralsoption or not. -
Adds the
regexpConstructorsoption.Declaration
Swift
@discardableResult func regexpConstructors(_ value: Bool) -> SelfParameters
valueWhether to enable
regexpConstructorsoption or not. -
Adds the
removeConsoleoption.Declaration
Swift
@discardableResult func removeConsole(_ value: Bool) -> SelfParameters
valueWhether to enable
removeConsoleoption or not. -
Adds the
removeDebuggeroption.Declaration
Swift
@discardableResult func removeDebugger(_ value: Bool) -> SelfParameters
valueWhether to enable
removeDebuggeroption or not. -
Adds the
removeUndefinedoption.Declaration
Swift
@discardableResult func removeUndefined(_ value: Bool) -> SelfParameters
valueWhether to enable
removeUndefinedoption or not. -
Adds the
simplifyoption.Declaration
Swift
@discardableResult func simplify(_ value: Bool) -> SelfParameters
valueWhether to enable
simplifyoption or not. -
Adds the
simplifyComparisonsoption.Declaration
Swift
@discardableResult func simplifyComparisons(_ value: Bool) -> SelfParameters
valueWhether to enable
simplifyComparisonsoption or not. -
Adds the
typeConstructorsoption.Declaration
Swift
@discardableResult func typeConstructors(_ value: Bool) -> SelfParameters
valueWhether to enable
typeConstructorsoption or not. -
Adds the
undefinedToVoidoption.Declaration
Swift
@discardableResult func undefinedToVoid(_ value: Bool) -> SelfParameters
valueWhether to enable
undefinedToVoidoption or not.
View on GitHub
MinifyJSTransform Class Reference