Skip to content

max-file-size-kb

Flags assets larger than the configured threshold (default 512 KB).

  • Severity: warning
  • Enabled by default: yes

How to fix it

Compress or resize the asset, or raise the threshold for the paths that need it.

Configuration

{ "rules": { "max-file-size-kb": ["warn", 256] } }

All rules