Adding automatically generated favicons of different sizes and for different devices is easy with this plugin. It only requires two steps.
- Install the package:
npm i -D favicons-webpack-plugin
- Add the plugin to your
webpack.config.jsfile and configure it (at least add path to your favicon image):
let FaviconsWebpackPlugin = require('favicons-webpack-plugin'); ... plugins: [ new FaviconsWebpackPlugin('./src/app/assets/images/logo.png') ]