Skip to content

Commit

Permalink
added /favicon.ico to web
Browse files Browse the repository at this point in the history
  • Loading branch information
skeswa committed Nov 26, 2016
1 parent e0078da commit 057f160
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 8 additions & 0 deletions infra/docker/web/files/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ http {
access_log off;
}

location = /favicon.ico {
expires 365d;
access_log off;
default_type image/x-icon;
add_header Cache-Control public;
alias /usr/share/nginx/html/favicon.ico;
}

location ~ ^/static/ {
rewrite ^/static/(.*) /$1 break;
}
Expand Down
Binary file added web/client/resources/images/favicon.ico
Binary file not shown.
16 changes: 13 additions & 3 deletions web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,24 @@ module.exports = {
'resources',
'images',
'favicon.png')),
new CopyWebpackPlugin([{
from: path.join(
new CopyWebpackPlugin([
{
from: path.join(
__dirname,
'client',
'resources',
'images',
'og-splash.png'),
}])
},
{
from: path.join(
__dirname,
'client',
'resources',
'images',
'favicon.ico'),
}
])
],
devServer: {
contentBase: './client',
Expand Down

0 comments on commit 057f160

Please sign in to comment.