Skip to content

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

Open
zmy-devs wants to merge 1 commit into
electron-forge:v6from
zmy-devs:docs/issue-242-vite-renderer-base
Open

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

Conversation

@zmy-devs

Copy link
Copy Markdown

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.
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

1 participant