LogoPixi’VN
viteInterfaces

Interface: VitePluginPixivnOptions

Defined in: src/vite/plugins.ts:43

Options for vitePluginPixivn.

Properties

characters?

> optional characters?: string | string[]

Defined in: src/vite/plugins.ts:69

Glob / path of module(s) whose side effects register characters via RegisteredCharacters.add(...).

Use when characters are defined separately from other content.

Example

"./src/characters.ts"

content?

> optional content?: string | string[]

Defined in: src/vite/plugins.ts:59

Glob / path of module(s) that set up all game content as side effects: characters, labels, hashtag-command handlers, text-replace handlers, etc.

The plugin loads these files server-side (via Vite SSR) at startup so that every downstream plugin that depends on the registered data — most notably vitePluginInk for JSON compilation — has the full registry available before it runs. This also works during vite build.

Pointing to a barrel file that re-exports everything is the simplest option. All patterns are resolved relative to Vite root.

Examples

"./src/content/index.ts"
"./src/content/*.ts"

labels?

> optional labels?: string | string[]

Defined in: src/vite/plugins.ts:77

Glob / path of module(s) whose side effects register narration labels via RegisteredLabels.register(...).

Example

"./src/*.label.ts"

On this page