Rspeedy logo
Rspeedy

Home > @lynx-js/rspeedy > Minify

Minify interface

The Minify configures whether to enable code minification in the production build, or to configure minimizer options.

Signature:

export interface Minify 

Properties

Property

Modifiers

Type

Description

backgroundOptions?

Rspack.SwcJsMinimizerRspackPluginOptions | undefined

(Optional) Minify.backgroundOptions is used to override Minify.jsOptions for background-thread bundles.

css?

boolean | undefined

(Optional) Whether enable the CSS minification.

js?

boolean | undefined

(Optional) Whether enable the JavaScript minification.

jsOptions?

Rspack.SwcJsMinimizerRspackPluginOptions | undefined

(Optional) Minify.jsOptions is used to configure SWC minification options.

mainThreadOptions?

Rspack.SwcJsMinimizerRspackPluginOptions | undefined

(Optional) Minify.mainThreadOptions is used to override Minify.jsOptions for main-thread bundles.

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.