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.dev.md.
Rspeedy logo
Rspeedy
  • 简体中文
  • Home > @lynx-js/rspeedy > Dev

    Dev interface

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

    Signature:

    export interface Dev 

    Properties

    Property

    Modifiers

    Type

    Description

    assetPrefix?

    string | boolean | undefined

    (Optional) The Dev.assetPrefix is used to set the URL prefix for static assets during development.

    client?

    Client | undefined

    (Optional) Configuration of the development client.

    hmr?

    boolean | undefined

    (Optional) Whether to enable Hot Module Replacement (HMR).

    liveReload?

    boolean | undefined

    (Optional) Whether to enable live reload functionality.

    progressBar?

    boolean | { id?: string; } | undefined

    (Optional) Whether to display progress bar during compilation.

    watchFiles?

    WatchFiles | WatchFiles[] | undefined

    (Optional) Watch specified files and directories for changes. When a file change is detected, it can trigger a page reload or restart the dev server.

    writeToDisk?

    boolean | ((filename: string) => boolean) | undefined

    (Optional) Used to control whether the build artifacts of the development environment are written to the disk.

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