dev.assetPrefix

  • Type: boolean | string | 'auto'
  • Default: '/'

This configuration item is used to set the URL prefix of static resources in development mode.

INFO

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

WARNING

Please note that this configuration item is only applicable in development mode. In production mode, please use the output.assetPrefix configuration item for setting.