Skip to content

Commit f8f3140

Browse files
committed
Add favicon to xsnippet
To improve user experience and let user see site symbol right next to site title on browser tab.
1 parent 014ed76 commit f8f3140

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/assets/favicon.ico

14.7 KB
Binary file not shown.

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ module.exports = () => {
103103

104104
// Generate index.html based on passed template, populating it with
105105
// produced JavaScript bundles.
106-
new HtmlWebpackPlugin({ template: path.resolve(__dirname, 'src', 'index.html') }),
106+
new HtmlWebpackPlugin({
107+
template: path.resolve(__dirname, 'src', 'index.html'),
108+
favicon: path.resolve(__dirname, 'src', 'assets', 'favicon.ico'),
109+
}),
107110

108111
// Extract third party libraries into 'vendors' bundle. Unfortunately
109112
// this splitting can't help us to preserve the same hash for vendors if

0 commit comments

Comments
 (0)