KC's Workspace
    Preparing search index...
    interface CompressOptions {
        dropConsole?: boolean;
        dropDebugger?: boolean;
        dropLabels?: string[];
        joinVars?: boolean;
        keepNames?: CompressOptionsKeepNames;
        maxIterations?: number;
        sequences?: boolean;
        target?: string | string[];
        treeshake?: TreeShakeOptions;
        unused?: boolean | "keep_assign";
    }
    Index

    Properties

    dropConsole?: boolean

    Pass true to discard calls to console.*.

    false
    
    dropDebugger?: boolean

    Remove debugger; statements.

    true
    
    dropLabels?: string[]

    Set of label names to drop from the code.

    Labeled statements matching these names will be removed during minification.

    []
    
    joinVars?: boolean

    Join consecutive var, let and const statements.

    true
    

    Keep function / class names.

    maxIterations?: number

    Limit the maximum number of iterations for debugging purpose.

    sequences?: boolean

    Join consecutive simple statements using the comma operator.

    a; b -> a, b

    true
    
    target?: string | string[]

    Set desired EcmaScript standard version for output.

    Set esnext to enable all target highering.

    Example:

    • 'es2015'
    • ['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']
    'esnext'
    
    treeshake?: TreeShakeOptions

    Treeshake options.

    unused?: boolean | "keep_assign"

    Pass true to drop unreferenced functions and variables.

    Simple direct variable assignments do not count as references unless set to keep_assign.

    true