Skip to content

fix: ship font and image assets with the package builds - #192

Merged
MathiasVDA merged 1 commit into
mainfrom
claude/project-thread-3esl51
Oct 6, 2026
Merged

MathiasVDA merged 1 commit into
mainfrom
claude/project-thread-3esl51

Conversation

@MathiasVDA

Copy link
Copy Markdown
Collaborator

Requested by Mathias · project thread

Before: loading @matdata/yasgui from unpkg/jsdelivr (or the Docker image) shows no icons. yasgui.min.css references ./fa-solid-900-XY6737PV.woff2 and the Leaflet map images, but those files are not in the published package, so they return 404.

After: the font and image files ship next to the CSS in each package (yasgui, yasqe, yasr) and in the Docker image, so icons and map controls render.

Fixes #191.

How: esbuild emitted assets as build/<asset>-<hash>.*, while distributeBuildFiles.js only copies files starting with the package name into packages/<pkg>/build. Assets are now named <pkg>-<asset>-<hash> (via assetNames), so they are picked up. The Dockerfile now also copies yasgui-*.woff2 and yasgui-*.png. Verified locally with a production build plus distributeBuildFiles.js: every url() in the three package CSS files resolves to a file in that package's build/ directory. The Docker change was not built locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KyMfexu5WafYRCzh4jhKu6


Generated by Claude Code

esbuild emitted fonts and images as build/<asset>-<hash>.*, but
distributeBuildFiles.js only copies files starting with the package name,
so the published packages referenced a missing fa-solid-900 font and the
Leaflet images. Prefix assets with the package name so they are shipped,
and copy them into the Docker image as well.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KyMfexu5WafYRCzh4jhKu6
@MathiasVDA MathiasVDA self-assigned this Oct 6, 2026
@MathiasVDA
MathiasVDA marked this pull request as ready for review October 6, 2026 12:11
@MathiasVDA MathiasVDA mentioned this pull request Oct 6, 2026
@MathiasVDA
MathiasVDA merged commit 74b92c1 into main Oct 6, 2026
2 checks passed
@MathiasVDA
MathiasVDA deleted the claude/project-thread-3esl51 branch October 6, 2026 14:16
MathiasVDA added a commit that referenced this pull request Oct 11, 2026
…192)

esbuild emitted fonts and images as build/<asset>-<hash>.*, but
distributeBuildFiles.js only copies files starting with the package name,
so the published packages referenced a missing fa-solid-900 font and the
Leaflet images. Prefix assets with the package name so they are shipped,
and copy them into the Docker image as well.
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.

Missing icon font

2 participants