Class
MinifyJSTransform
public class MinifyJSTransform: Transform
Minifies your JavaScript files.
Relationships
Superclass
Transform:nodoc:
Initializers
Methods
booleans(_:)
@discardableResult
func booleans(_ value: Bool) -> Self
Adds the booleans option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
builtIns(_:)
@discardableResult
func builtIns(_ value: Bool) -> Self
Adds the builtIns option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
consecutiveAdds(_:)
@discardableResult
func consecutiveAdds(_ value: Bool) -> Self
Adds the consecutiveAdds option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
deadcode(_:)
@discardableResult
func deadcode(_ value: Bool) -> Self
Adds the deadcode option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
evaluate(_:)
@discardableResult
func evaluate(_ value: Bool) -> Self
Adds the evaluate option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
flipComparisons(_:)
@discardableResult
func flipComparisons(_ value: Bool) -> Self
Adds the flipComparisons option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
guards(_:)
@discardableResult
func guards(_ value: Bool) -> Self
Adds the guards option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
infinity(_:)
@discardableResult
func infinity(_ value: Bool) -> Self
Adds the infinity option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
mangle(_:)
@discardableResult
func mangle(_ value: Bool) -> Self
Adds the mangle option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
memberExpressions(_:)
@discardableResult
func memberExpressions(_ value: Bool) -> Self
Adds the memberExpressions option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
mergeVars(_:)
@discardableResult
func mergeVars(_ value: Bool) -> Self
Adds the mergeVars option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
numericLiterals(_:)
@discardableResult
func numericLiterals(_ value: Bool) -> Self
Adds the numericLiterals option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
propertyLiterals(_:)
@discardableResult
func propertyLiterals(_ value: Bool) -> Self
Adds the propertyLiterals option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
regexpConstructors(_:)
@discardableResult
func regexpConstructors(_ value: Bool) -> Self
Adds the regexpConstructors option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
removeConsole(_:)
@discardableResult
func removeConsole(_ value: Bool) -> Self
Adds the removeConsole option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
removeDebugger(_:)
@discardableResult
func removeDebugger(_ value: Bool) -> Self
Adds the removeDebugger option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
removeUndefined(_:)
@discardableResult
func removeUndefined(_ value: Bool) -> Self
Adds the removeUndefined option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
simplify(_:)
@discardableResult
func simplify(_ value: Bool) -> Self
Adds the simplify option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
simplifyComparisons(_:)
@discardableResult
func simplifyComparisons(_ value: Bool) -> Self
Adds the simplifyComparisons option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
typeConstructors(_:)
@discardableResult
func typeConstructors(_ value: Bool) -> Self
Adds the typeConstructors option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |
undefinedToVoid(_:)
@discardableResult
func undefinedToVoid(_ value: Bool) -> Self
Adds the undefinedToVoid option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool |
Whether to enable |