CesiumGS / CesiumGS/cesium-vite-example

Base URL in Vite Example should be 'absolute'

Open
#12 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
62
Forks
26
PR merge metrics
No merged PRs in 30d

Description

If you don't add a slash in front, it will attempt to import the assets relative to the current URL pathname.

https://github.com/CesiumGS/cesium-vite-example/blob/main/vite.config.js#L7

The example should add the slash in front, and/or explain this limitation.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open vite.config.js at line 7 and inspect how the example sets its base URL for asset imports. Confirm the behavior when the URL lacks a leading slash, then update the example and/or its explanation so the intended absolute-base behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vite
Domain
build-system
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.