aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-06-06 06:57:08 +0200
committerGitHub <noreply@github.com>2023-06-06 12:57:08 +0800
commitc09f747b516f52b16f3d699e5f115789600a432a (patch)
tree8ba840d95a0f5c78446a5e3e8d92886f1245a1f1 /routers
parent8d7893e8175916ce2959882fdfb9dc4e42beb15a (diff)
downloadgitea-c09f747b516f52b16f3d699e5f115789600a432a.tar.gz
gitea-c09f747b516f52b16f3d699e5f115789600a432a.zip
Enable all webpack sourcemaps in dev build, disable all in prod build (#25089)
- Enable all source maps in dev build - Disable all source maps in prod build - Provide `ENABLE_SOURCEMAP` env var to override it. I think the strange error seen in https://github.com/go-gitea/gitea/issues/24784 is sourcemap related, so if we enable/disable them all, it might go away. But it's most definitely a Safari bug. With all sourcemaps disabled, binary size goes down by around 1-2 MB, with all enabled it goes up by around 12MB. If +12MB is acceptable, we could also always enable them by default as fully source maps do have some debugging benefits.
Diffstat (limited to 'routers')
0 files changed, 0 insertions, 0 deletions