For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/rspeedy/rspeedy.config.md.
Rspeedy logo
Rspeedy
  • 简体中文
  • Home > @lynx-js/rspeedy > Config

    Config interface

    The Config is the configuration that rspeedy uses.

    Signature:

    export interface Config 

    Properties

    Property

    Modifiers

    Type

    Description

    dev?

    Dev | undefined

    (Optional) The Dev option is used to control the behavior related with development. Including: HMR, DevServer, etc.

    environments?

    RsbuildConfig['environments'] | undefined

    (Optional) The Config.environments option is used to set the output environment.

    mode?

    'development' | 'production' | 'none' | undefined

    (Optional) Specify the build mode for Rsbuild and Rspack, as each mode has different default behavior and optimizations.

    output?

    Output | undefined

    (Optional) The Output option is used to set how and where should the bundles and assets output.

    performance?

    Performance | undefined

    (Optional) The Performance option is used to optimize the build-time and runtime performance.

    plugins?

    RsbuildPlugins | undefined

    (Optional) The plugins option is used to customize the build process in a variety of ways.

    resolve?

    Resolve | undefined

    (Optional) The Resolve option is used to control the resolution behavior of Rspack.

    server?

    Server | undefined

    (Optional) The Server option changes the behavior of dev-server.

    source?

    Source | undefined

    (Optional) The Source option changes the behavior of source files.

    splitChunks?

    RsbuildConfig['splitChunks'] | undefined

    (Optional) Configure chunk splitting.

    tools?

    Tools | undefined

    (Optional) The Tools options changes the behavior of various building tools.

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。