-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathvite.config.ts
More file actions
47 lines (45 loc) · 1.69 KB
/
vite.config.ts
File metadata and controls
47 lines (45 loc) · 1.69 KB
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
import { URL, fileURLToPath } from 'node:url';
import Aerogel, { AerogelResolver } from '@aerogel/vite';
import Components from 'unplugin-vue-components/vite';
import I18n from '@intlify/unplugin-vue-i18n/vite';
import Icons from 'unplugin-icons/vite';
import IconsResolver from 'unplugin-icons/resolver';
import RekaResolver from 'reka-ui/resolver';
import { defineConfig } from 'vitest/config';
import { FileSystemIconLoader } from 'unplugin-icons/loaders';
export default defineConfig({
build: { sourcemap: true },
publicDir: fileURLToPath(new URL('./src/assets/public/', import.meta.url)),
plugins: [
Aerogel({
name: 'Focus',
description: 'Your distraction-free Task Manager',
baseUrl: 'https://focus.noeldemartin.com',
themeColor: '#0ea5e9',
icons: {
'192x192': 'android-chrome-192x192.png',
'512x512': 'android-chrome-512x512.png',
},
}),
Components({
deep: true,
dts: 'src/types/components.d.ts',
resolvers: [AerogelResolver(), IconsResolver({ customCollections: ['app'] }), RekaResolver()],
dirs: ['src/components', 'src/pages'],
}),
I18n({ strictMessage: false, include: fileURLToPath(new URL('./src/lang/**/*.yaml', import.meta.url)) }),
Icons({
iconCustomizer(_, __, props) {
props['aria-hidden'] = 'true';
},
customCollections: {
app: FileSystemIconLoader('./src/assets/icons'),
},
}),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src/', import.meta.url)),
},
},
});