Class SafeTransformer

Removes comments and whitespace from a PHP script, by calling a PHP process.

Implements

Constructors

Methods

Constructors

Methods

  • Closes this transformer and releases any resources associated with it.

    Returns Promise<void>

    Resolves when the transformer is finally disposed.

  • Processes a PHP script.

    Parameters

    • file: string

      The path to the PHP script.

    Returns Promise<string>

    The transformed script.