-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.ts
More file actions
43 lines (42 loc) · 1010 Bytes
/
vite.config.ts
File metadata and controls
43 lines (42 loc) · 1010 Bytes
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
import { vitePWAconfig } from './vitePwaOptions.js';
import { defineConfig } from 'vite';
import { fileURLToPath, URL } from 'url';
import { VitePWA } from 'vite-plugin-pwa';
import Vue from '@vitejs/plugin-vue';
import postcssPresetEnv from 'postcss-preset-env';
import vuetify from 'vite-plugin-vuetify';
//@ts-expect-error Temp for migrating to another node ts config
import ViteFonts from 'unplugin-fonts/vite';
export default defineConfig({
css: {
postcss: {
plugins: [
postcssPresetEnv({
features: {
'nesting-rules': true,
},
}),
],
},
},
plugins: [
Vue(),
vuetify(),
VitePWA(vitePWAconfig),
ViteFonts({
fontsource: {
families: [
{
name: 'Roboto',
weights: [100, 300, 400, 500, 700, 900],
styles: ['normal', 'italic'],
},
],
},
}),
],
resolve: {
alias: [{ find: '@', replacement: fileURLToPath(new URL('./src', import.meta.url)) }],
},
publicDir: 'src/public',
});