Controls which files are processed for asset pre-compression. Note that the compression version will only be used if it's smaller than the source.

interface AssetCompressionOptions {
    fileExtensions: string[];
    threshold: number;
}

Properties

fileExtensions: string[]

Lists every file extension that should be processed for asset pre-compression.

Default

['.css', '.js', '.html', '.xml', '.cjs', '.mjs', '.svg', '.txt', '.json']
threshold: number

The minimum file size for asset pre-compression to take place.

Default

1024