Skip to content

Commit

Permalink
Favicons.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Feb 15, 2024
1 parent 5846405 commit 37d3a57
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
48 changes: 48 additions & 0 deletions frontend/src/images/logo-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions frontend/vite.build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import path from 'path';
import { fileURLToPath } from 'url';
import { rimraf } from 'rimraf';
import { build } from 'vite';
import { ViteFaviconsPlugin } from 'vite-plugin-favicon';
import defaultConfig from './vite.config.mjs';

const dirName = fileURLToPath(new URL('.', import.meta.url));
Expand All @@ -22,6 +23,20 @@ const inputs = {
['notifo-sdk-worker']: path.resolve(dirName, 'src/sdk/sdk-worker.ts'),
};

defaultConfig.plugins.push(
ViteFaviconsPlugin({
logo: './src/images/logo-square.svg',
favicons: {
appName: 'Notifo',
appDescription: 'Notification Center',
developerName: 'Squidex UG (haftungsbeschränkt)',
developerURL: 'https://notifo.io',
start_url: '/',
theme_color: '#8c84fa',
},
}),
);

async function buildPackages() {
await rimraf('./build');

Expand Down

0 comments on commit 37d3a57

Please sign in to comment.