Merge pull request #8796 from codyrancher/favicon

Changing how we serve the favicon
This commit is contained in:
codyrancher 2023-05-09 20:09:59 +02:00 committed by GitHub
commit 12d2ed1906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="/public/favicon.png">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.png">
<title>Rancher</title>
</head>

View File

@ -408,8 +408,8 @@ module.exports = function(dir, _appConfig) {
}),
}));
// The static assets need to be in the built public folder in order to get served (primarily the favicon for now)
config.plugins.push(new CopyWebpackPlugin([{ from: path.join(SHELL_ABS, 'static'), to: 'public' }]));
// The static assets need to be in the built assets directory in order to get served (primarily the favicon)
config.plugins.push(new CopyWebpackPlugin([{ from: path.join(SHELL_ABS, 'static'), to: '.' }]));
config.resolve.extensions.push(...['.tsx', '.ts', '.js', '.vue', '.scss']);
config.watchOptions = config.watchOptions || {};