zooniverse / wildcam-gorongosa-education

This is WildCam Labs, the education/exploration-oriented extension of the WildCam Gorongosa project.
https://lab.wildcamgorongosa.org/
Apache License 2.0
0 stars 1 forks source link

Add Zooniverse Favicon #224

Closed shaunanoordin closed 8 years ago

shaunanoordin commented 8 years ago

We have a favicon!

zooniverse-icon-web-black

Two things are required for this to work:

  1. The loader in webpack.config.js needs to use...
{
  test: /\.ico$/,
  loader: 'file?name=[name].[ext]',
},

...to load the .ico file without compressing it (which file-loader would do) and renaming it.

  1. The entry file, Index.jsx needs to have some sort of reference to the .ico file so Webpack knows that the file is needed by the app. import favicon from './images/favicon.ico'; works for this purpose.
simoneduca commented 8 years ago

LGTM, thanks Shaun.