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.
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.
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.