-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvite.config.ts
61 lines (60 loc) · 2.6 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
const path = require('path');
import htmlPlugin from 'vite-plugin-html-config';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'~': path.resolve(__dirname, './src'),
},
},
define: {
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
},
plugins: [
react(),
htmlPlugin({
links: [
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: 'https://tony.tallstranger.studio/assets/apple-touch-icon.png',
},
{
rel: 'icon',
sizes: '32x32',
href: 'https://tony.tallstranger.studio/assets/favicon-32x32.png',
},
{
rel: 'icon',
sizes: '16x16',
href: 'https://tony.tallstranger.studio/assets/favicon-16x16.png',
},
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossOriginIsolated: true },
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;600&family=Open+Sans:wght@400;500;600&family=Roboto+Condensed:ital,wght@1,300&family=Roboto+Mono:wght@400;600&family=Nunito:wght@400;500;700&display=swapdisplay=swap',
},
],
metas: [
{ name: 'title', content: 'Tony - Visual Novels' },
{ name: 'description', content: 'Tony is a visual novel writing app.' },
{ property: 'og:type', content: 'website' },
{ property: 'og:url', content: 'https://tony.tallstranger.studio' },
{ property: 'og:title', content: 'Tony - Visual Novels' },
{ property: 'og:description', content: 'Tony is a visual novel writing app.' },
{ property: 'og:image', content: 'https://tony.tallstranger.studio/assets/cover.png' },
{ property: 'twitter:card', content: 'summary_large_image' },
{ property: 'twitter:url', content: 'https://tony.tallstranger.studio' },
{ property: 'twitter:title', content: 'Tony - Visual Novels' },
{ property: 'twitter:description', content: 'Tony is a visual novel writing app.' },
{ property: 'twitter:image', content: 'https://tony.tallstranger.studio/assets/cover.png' },
{ property: 'twitter:image', content: 'https://tony.tallstranger.studio/assets/cover.png' },
{ property: 'twitter:image', content: 'https://tony.tallstranger.studio/assets/cover.png' },
{ property: 'twitter:image', content: 'https://tony.tallstranger.studio/assets/cover.png' },
],
}),
],
});