interface Interface {
    Action?: boolean | Interface;
    Cache?: boolean | Interface;
    CSS?: boolean | {
        csso?: Interface;
        lightningcss?: Interface;
    };
    Exclude?:
        | boolean
        | Type
        | Type[]
        | Set<Type>;
    File?: string | boolean | string[];
    HTML?: boolean | {
        html-minifier-terser?: Options;
    };
    Image?: boolean | {
        sharp?: Interface;
    };
    JavaScript?: boolean | {
        terser?: MinifyOptions;
    };
    Logger?: boolean | Type;
    Map?: boolean | Interface;
    Parser?: Interface;
    Path?:
        | boolean
        | Type
        | Type[]
        | Set<Type>;
    SVG?: boolean | {
        svgo?: Config;
    };
}

Hierarchy

  • default
    • Interface

Properties

Action?: boolean | Interface

Action pipe configuration.

Cache?: boolean | Interface

Configuration for the target cache.

{ Search: "./", Folder: "./Cache" }
CSS?: boolean | {
    csso?: Interface;
    lightningcss?: Interface;
}

csso, lightningcss option properties

Exclude?:
    | boolean
    | Type
    | Type[]
    | Set<Type>

Criteria for excluding files.

File?: string | boolean | string[]

File patterns to be matched.

HTML?: boolean | {
    html-minifier-terser?: Options;
}

html-minifier-terser option properties

Image?: boolean | {
    sharp?: Interface;
}

sharp option properties

JavaScript?: boolean | {
    terser?: MinifyOptions;
}

terser option properties

Logger?: boolean | Type

Debugging level.

2
Map?: boolean | Interface

Map to different file paths

Parser?: Interface

Parsers for different file types

Path?:
    | boolean
    | Type
    | Type[]
    | Set<Type>

Configuration for the target path(s).

"./Target"
SVG?: boolean | {
    svgo?: Config;
}

svgo option properties