Skip to content

Function: compress()

Documentation / @wtf/project-vite / compress

function compress(options?): Plugin;

Defined in: packages/project-vite/src/config.ts:113

The plugin that writes a brotli (at its quality 11) and a gzip (at its level 9) copy beside each file of text a site’s build writes, of threshold bytes or more, where the copy is smaller: by vite-plugin-compression2, applied to a site’s build alone (buildsSite). The copies are Vite’s output, and its public/ folder’s: a file a pipeline copies in after the build has none.

Parameters

ParameterType
optionsCompressOptions

Returns

Plugin