chore(*): Add favicon and manifest

This commit is contained in:
Josh Creek
2022-10-07 19:50:41 +01:00
parent f97bc01e14
commit 656856fa79
12 changed files with 93 additions and 2 deletions
+18
View File
@@ -58,6 +58,24 @@ module.exports = {
test: /\.(png|jpg|jpeg|gif)$/i,
type: 'asset/resource',
},
{
// Add support for favicon
test: /\.ico$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]', // <-- retain original file name
},
},
],
},
{
// Add support for manifest
test: /\.webmanifest$/i,
use: 'webpack-webmanifest-loader',
type: 'asset/resource',
},
{
// Add inlining of SVG
test: /\.svg$/i,