Update public directory paths for Vite.

This commit is contained in:
Bauke 2023-03-26 14:33:17 +02:00
parent 75eddf0e17
commit 5dfdd73cf5
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ export default function createManifest(
};
const icons = {
128: 'assets/queue.png',
128: 'queue.png',
};
manifest.icons = icons;

View File

@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Queue</title>
<link rel="shortcut icon" href="/assets/queue.png" type="image/png">
<link rel="shortcut icon" href="/queue.png" type="image/png">
<link rel="stylesheet" href="./index.scss">
</head>

View File

@ -46,11 +46,11 @@ export default defineConfig({
// See vite-plugin-web-extension for documentation.
// https://github.com/aklinker1/vite-plugin-web-extension
webExtension({
assets: 'assets',
browser: targetBrowser,
manifest: () => createManifest(targetBrowser),
webExtConfig,
}),
],
publicDir: 'source/assets',
root: sourceDir,
});