MinifyCSSTransform

public class MinifyCSSTransform : Transform

Minifies your CSS files.

Lifecycle

  • Initializes a MinifyCSSTransform object.

    Declaration

    Swift

    public init()

Public Functions

  • Adds the level option.

    Declaration

    Swift

    @discardableResult
    func level(_ value: Int) -> Self

    Parameters

    value

    Minification level.

  • Adds the gzip option.

    Declaration

    Swift

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

    Parameters

    value

    Whether to compress file and add content encoding gzip header.