themes: theme changes aren't rebuilt by `pxt serve`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 641
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 57
Description
When running pxt serve in a target folder, when I make a change to theme css, (for example changing a color in the target's theme/color-theme/overrides/<target>-default-overrides.css), the cli will report "rebuilding css" and "css build complete", but the changes are not reflected in the target after reloading.
Workround: restarting pxt serve loads the new css.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by running pxt serve in a target folder and editing theme/color-theme/overrides/<target>-default-overrides.css. Trace the CSS rebuild entry point and verify whether the edited theme is included after reload. Done means theme changes appear without restarting pxt serve, with regression coverage if the existing test setup supports it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, typescript
- Domain
- build-system, cli, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100