Home > @lynx-js/rspeedy > Minify > cssOptions

Minify.cssOptions property

Minify.cssOptions is used to configure CSS minimizer options.

Signature:

cssOptions?: Rspack.LightningCssMinimizerRspackPluginOptions | undefined;

Remarks

For detailed configurations, please refer to LightningCssMinimizerRspackPlugin.

Example

  • For example, disable error recovery:
import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  output: {
    minify: {
      cssOptions: {
        minimizerOptions: {
          errorRecovery: false,
        },
      },
    },
  },
})
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.