html.meta

  • Type: Object | Function
  • Default:
const defaultMeta = {
  charset: { charset: 'utf-8' },
  viewport:
    'width=device-width, initial-scale=1.0, shrink-to-fit=no, viewport-fit=cover, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no',
  'http-equiv': { 'http-equiv': 'x-ua-compatible', content: 'ie=edge' },
  renderer: 'webkit',
  layoutmode: 'standard',
  imagemode: 'force',
  'wap-font-scale': 'no',
  'format-detection': 'telephone=no',
};

Configure the <meta> tag of the HTML.

INFO

The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - html.meta.