diff options
| author | Jamal Carvalho <jamal@golang.org> | 2023-02-21 17:27:01 +0000 |
|---|---|---|
| committer | Jamal Carvalho <jamal@golang.org> | 2023-02-22 18:33:08 +0000 |
| commit | 474fcadb0a31131853442447d42a30ccd6e65a7b (patch) | |
| tree | 1f774b4a838e591eb6bf9df49333d53fbc59a940 /internal/frontend/server.go | |
| parent | 0c71934965f74b11a9ad32bb836c24946b894786 (diff) | |
| download | go-x-pkgsite-474fcadb0a31131853442447d42a30ccd6e65a7b.tar.xz | |
internal,static: upgrade esbuild
The previous version of esbuild would sometimes out non-deterministic
versions of minified files. This would generate large diffs when make
small changes to script code on different machines.
Change-Id: I30540088ad2a259e4c086b18505016a95937dc2f
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/469855
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'internal/frontend/server.go')
| -rw-r--r-- | internal/frontend/server.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/frontend/server.go b/internal/frontend/server.go index cd768a62..dae9c635 100644 --- a/internal/frontend/server.go +++ b/internal/frontend/server.go @@ -779,8 +779,11 @@ func (s *Server) staticHandler() http.Handler { panic("staticPath is empty in dev mode; cannot rebuild static files") } ctx := context.Background() - _, err := static.Build(static.Config{EntryPoint: s.staticPath + "/frontend", Watch: true, Bundle: true}) - if err != nil { + if err := static.Build(static.Config{ + EntryPoint: s.staticPath + "/frontend", + Watch: true, + Bundle: true, + }); err != nil { log.Error(ctx, err) } } |
