From 94ae3f5990089ab8201a44890c520601cb6a2c70 Mon Sep 17 00:00:00 2001 From: mpl Date: Fri, 5 Sep 2014 22:34:31 +0200 Subject: [PATCH] server/ui: initialize lessHandler in dev mode Change-Id: I42643b9a82639aa2ef20c044e87f42a50a40c992 --- pkg/server/ui.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/server/ui.go b/pkg/server/ui.go index 1e3ba48e6..add058069 100644 --- a/pkg/server/ui.go +++ b/pkg/server/ui.go @@ -226,6 +226,10 @@ func uiFromConfig(ld blobserver.Loader, conf jsonconfig.Obj) (h http.Handler, er if err != nil { return nil, fmt.Errorf("Could not make fontawesome handler: %s", err) } + ui.fileLessHandler, err = makeFileServer(ui.sourceRoot, filepath.Join("third_party", "less"), "less.js") + if err != nil { + return nil, fmt.Errorf("Could not make less handler: %s", err) + } } rootPrefix, _, err := ld.FindHandlerByType("root")