...to load the .ico file without compressing it (which file-loader would do) and renaming it.
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.
We have a favicon!
Two things are required for this to work:
loader
inwebpack.config.js
needs to use......to load the
.ico
file without compressing it (whichfile-loader
would do) and renaming it.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.