Add favicons
This commit is contained in:
parent
8166ee99ec
commit
325175525b
|
@ -13,6 +13,7 @@
|
|||
"clean-webpack-plugin": "^0.1.19",
|
||||
"css-loader": "^0.28.11",
|
||||
"exports-loader": "^0.7.0",
|
||||
"favicons-webpack-plugin": "^0.0.9",
|
||||
"file-loader": "^1.1.11",
|
||||
"html-loader": "^0.5.5",
|
||||
"html-webpack-plugin": "^3.1.0",
|
||||
|
|
BIN
src/lib/favicon.png
Normal file
BIN
src/lib/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
|
@ -4,6 +4,7 @@ const webpack = require("webpack");
|
|||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const CleanWebpackPlugin = require("clean-webpack-plugin");
|
||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
|
||||
|
||||
const PAGE_DIR = path.resolve(__dirname, "src", "pages");
|
||||
|
||||
|
@ -32,7 +33,8 @@ module.exports = {
|
|||
$: "jquery",
|
||||
jQuery: "jquery"
|
||||
}),
|
||||
new MiniCssExtractPlugin()
|
||||
new MiniCssExtractPlugin(),
|
||||
new FaviconsWebpackPlugin(path.resolve(__dirname, "src", "lib", "favicon.png"))
|
||||
].concat(pages.map(page => new HtmlWebpackPlugin(page))),
|
||||
module: {
|
||||
rules: [
|
||||
|
|
Reference in a new issue