Skip to content

Commit

Permalink
ui: include favicons
Browse files Browse the repository at this point in the history
Our favicons are generated into a subdirectory in pkg/ui/dist, which
our go-bindata invocation was not previously including, resulting in
missing favicons for our users! Fixed by adding the elipsis postfix as
described in the go-bindata readme.

Fixes #15891.
  • Loading branch information
tamird committed May 12, 2017
1 parent c3c50e3 commit 29d780c
Show file tree
Hide file tree
Showing 3 changed files with 409 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pkg/ui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test-debug: $(YARN_INSTALLED_TARGET) | protos
$(GOBINDATA_TARGET): $(YARN_INSTALLED_TARGET) $(shell git ls-files | grep -vF $(GOBINDATA_TARGET)) | protos
rm -rf dist
webpack -p
go-bindata -nometadata -pkg ui -o $@ -prefix dist dist
go-bindata -nometadata -pkg ui -o $@ -prefix dist dist/...
# Add comment recognized by reviewable.
echo '// GENERATED FILE DO NOT EDIT' >> $@
gofmt -s -w $@
Expand Down
419 changes: 406 additions & 13 deletions pkg/ui/embedded.go

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pkg/ui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ module.exports = {
plugins: [
new FaviconsWebpackPlugin({
logo: './logo.png',
title: title,
persistentCache: false,
inject: true,
title: title,
icons: {
// Must explicitly override defaults. Sigh.
android: false,
Expand Down

0 comments on commit 29d780c

Please sign in to comment.