Home Manual Reference Source Test Repository
import {Minifier} from '@cedx/gulp-php-minify/src/minifier.js'
public class | source

Minifier

Extends:

stream~Transform → Minifier

Removes PHP comments and whitespace by applying the php_strip_whitespace() function.

Test:

Constructor Summary

Public Constructor
public

constructor(binary: string)

Initializes a new instance of the class.

Member Summary

Public Members
public

The path to the PHP executable.

public get

The transformation type.

public set

mode(value: string): *

Sets the transformation type.

public

Value indicating whether to silent the plug-in output.

Public Constructors

public constructor(binary: string) source

Initializes a new instance of the class.

Params:

NameTypeAttributeDescription
binary string
  • optional

The path to the PHP executable.

Public Members

public binary: string source

The path to the PHP executable.

public get mode: string source

The transformation type.

Test:

public set mode(value: string): * source

Sets the transformation type.

public silent: boolean source

Value indicating whether to silent the plug-in output.