Add favicon webpack plugin

This commit is contained in:
Jan Tuomi
2018-06-22 10:01:35 +03:00
parent 238e719aa7
commit f7059eefbe
8 changed files with 727 additions and 1 deletions
+17
View File
@@ -1,6 +1,8 @@
// development config
const merge = require('webpack-merge');
const webpack = require('webpack');
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
const commonConfig = require('./common');
module.exports = merge(commonConfig, {
@@ -17,6 +19,21 @@ module.exports = merge(commonConfig, {
},
devtool: 'cheap-module-eval-source-map',
plugins: [
new FaviconsWebpackPlugin({
logo: './assets/img/favicon.png',
icons: {
android: false,
appleIcon: false,
appleStartup: false,
coast: false,
favicons: true,
firefox: false,
opengraph: false,
twitter: false,
yandex: false,
windows: false
}
}),
new webpack.HotModuleReplacementPlugin(), // enable HMR globally
new webpack.NamedModulesPlugin(), // prints more readable module names in the browser console on HMR updates
],