Skip to content

Commit

Permalink
add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sabagh committed Jan 21, 2023
1 parent 9bf6f3b commit 318ef08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@babel/preset-env": "^7.20.2",
"babel-loader": "^9.1.2",
"css-loader": "^6.7.3",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"install": "^0.13.0",
"mini-css-extract-plugin": "^2.7.2",
Expand Down
Binary file added src/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ module.exports = {
}
}
},
{
test: /\.(png|jpg)$/i,
use: 'file-loader',
},
]
},
plugins: [
new HtmlWebpackPlugin({
template: './src/index.html',
title: 'Rock Paper Scissor',
favicon: './src/images/favicon.png',
template: './src/index.html',
}),
new MiniCssExtractPlugin(),
]
Expand Down

0 comments on commit 318ef08

Please sign in to comment.