mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-18 20:47:23 +01:00
Fixes: https://github.com/go-gitea/gitea/issues/36543 When running `make watch`, the backend may start before webpack finishes building CSS theme files. Since themes were loaded once via sync.Once, they would never reload, breaking the theme selector and showing a persistent error on the admin page. In dev mode, themes are now reloaded from disk on each access so they become available as soon as webpack finishes. Production behavior is unchanged where themes are loaded once and cached via sync.Once. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>