server/ui: initialize lessHandler in dev mode

Change-Id: I42643b9a82639aa2ef20c044e87f42a50a40c992
This commit is contained in:
mpl 2014-09-05 22:34:31 +02:00
parent 5d86dc153f
commit 94ae3f5990
1 changed files with 4 additions and 0 deletions

View File

@ -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")