mirror of https://github.com/perkeep/perkeep.git
server/ui: initialize lessHandler in dev mode
Change-Id: I42643b9a82639aa2ef20c044e87f42a50a40c992
This commit is contained in:
parent
5d86dc153f
commit
94ae3f5990
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue