Home > @lynx-js/rspeedy > Minify
The Minify configures whether to enable code minification in the production build, or to configure minimizer options.
Signature:
export interface Minify
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?
(Optional) Whether enable the JavaScript minification.
jsOptions?
(Optional) Minify.jsOptions is used to configure SWC minification options.
mainThreadOptions?
(Optional) Minify.mainThreadOptions is used to override Minify.jsOptions for main-thread bundles.