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

Hierarchy

  • default
    • Type

Properties

Action?: boolean | default

Action pipe configuration.

CSS?: boolean | {
    csso?: Type;
    lightningcss?: Type;
}

csso, lightningcss option properties

Type declaration

  • Optional csso?: Type
  • Optional lightningcss?: Type
Cache?: boolean | default

Configuration for the target cache.

Default

{ Search: "./", Folder: "./Cache" }
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

Type declaration

  • Optional html-minifier-terser?: Options
Image?: boolean | {
    sharp?: Type;
}

sharp option properties

Type declaration

  • Optional sharp?: Type
JavaScript?: boolean | {
    terser?: MinifyOptions;
}

terser option properties

Type declaration

  • Optional terser?: MinifyOptions
Logger?: boolean | Type

Debugging level.

Default

2
Map?: boolean | Type

Map to different file paths

Parser?: Type

Parsers for different file types

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

Configuration for the target path(s).

Default

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

svgo option properties

Type declaration

  • Optional svgo?: Config

Generated using TypeDoc