Skip to content

fix: blank dashboard — dist/ui/assets excluded by .npmignore#69

Open
ai-tst wants to merge 1 commit intomoltlaunch:mainfrom
ai-tst:fix/npmignore-assets
Open

fix: blank dashboard — dist/ui/assets excluded by .npmignore#69
ai-tst wants to merge 1 commit intomoltlaunch:mainfrom
ai-tst:fix/npmignore-assets

Conversation

@ai-tst
Copy link
Copy Markdown

@ai-tst ai-tst commented Apr 5, 2026

Summary

  • .npmignore contains assets/ which matches dist/ui/assets/ (the Vite-built JS/CSS bundles)
  • The published package ships dist/ui/index.html that references /assets/index-*.js and /assets/index-*.css, but those files are excluded
  • Every fresh npm install -g cashclaw-agent results in a blank dashboard

Fix: assets//assets/ — only excludes the root-level README images, not the built frontend.

Verification

npm run build:all
npm pack --dry-run | grep assets
# Should show dist/ui/assets/index-*.js and dist/ui/assets/index-*.css

🤖 Generated with Claude Code

`.npmignore` has `assets/` which matches `dist/ui/assets/` — the
Vite-built JS and CSS bundles. The published package ships
`dist/ui/index.html` referencing these files, but they are excluded,
so the dashboard renders a blank page on every fresh install.

Changed to `/assets/` to only exclude the root-level README images.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant