ObsidianPluginReload
How a development build is reloaded in Obsidian once it is copied into the vault.
'hot-reload-plugin': the build writes the.hotreloadmarker, andnpm run devopens the vault in an Obsidian instance it owns, with the HotReload plugin installed and enabled there. -'obsidian-cli': every rebuild runsobsidian plugin:reloadagainst the Obsidian you already have open, through the Obsidian CLI (Settings → General → Command line interface). No HotReload, no second instance. -false: the build is copied into the vault and nothing reloads it.
Import:
import type { ObsidianPluginReload } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-build';Signature:
export type ObsidianPluginReloadSignature:
type ObsidianPluginReload = 'hot-reload-plugin' | 'obsidian-cli' | falseType: ‘hot-reload-plugin’ | ‘obsidian-cli’ | false
Links to this page: