Skip to content

docs(vite): explain renderer base path - #262

Merged
erickzhao merged 1 commit into
electron-forge:v6from
zmy-devs:docs/issue-242-vite-renderer-base
Aug 25, 2026
Merged

docs(vite): explain renderer base path#262
erickzhao merged 1 commit into
electron-forge:v6from
zmy-devs:docs/issue-242-vite-renderer-base

Conversation

@zmy-devs

Copy link
Copy Markdown
Contributor

What changed

  • Document the renderer build's default base: './'.
  • Explain why packaged apps require relative asset URLs.
  • Add examples using import.meta.env.BASE_URL and relative HTML paths.

Validation

  • Ran electron-markdownlint.
  • Ran the Markdown JavaScript linter.
  • Ran the internal link checker.

Fixes #242

Added information about the renderer base path for Vite in Electron Forge, including usage of import.meta.env.BASE_URL and best practices for referencing assets.
@erickzhao
erickzhao merged commit 83aa197 into electron-forge:v6 Aug 25, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vite plugin: document that vite config for renderer has a default of base: './' and explain why this is necessary

2 participants