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
css? boolean | undefined (Optional) Whether enable the CSS minification.
cssOptions? Rspack.LightningCssMinimizerRspackPluginOptions | undefined (Optional) Minify.cssOptions is used to configure CSS minimizer options.
js? boolean | undefined (Optional) Whether enable the JavaScript minification.
jsOptions? Rspack.SwcJsMinimizerRspackPluginOptions | undefined (Optional) Minify.jsOptions is used to configure SWC minification options.
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。