2024-02-20 18:20:57 +01:00
|
|
|
// Plugins
|
|
|
|
import Components from 'unplugin-vue-components/vite'
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
|
|
import ViteFonts from 'unplugin-fonts/vite'
|
2024-02-17 17:33:32 +01:00
|
|
|
|
2024-02-20 18:20:57 +01:00
|
|
|
// Utilities
|
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
2024-02-17 17:33:32 +01:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [
|
2024-02-20 18:20:57 +01:00
|
|
|
vue({
|
|
|
|
template: { transformAssetUrls }
|
|
|
|
}),
|
|
|
|
Vuetify(),
|
|
|
|
Components(),
|
|
|
|
ViteFonts({
|
|
|
|
google: {
|
|
|
|
families: [{
|
|
|
|
name: 'Roboto',
|
|
|
|
styles: 'wght@100;300;400;500;700;900',
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}),
|
2024-02-17 17:33:32 +01:00
|
|
|
],
|
2024-02-20 18:20:57 +01:00
|
|
|
define: { 'process.env': {} },
|
2024-02-17 17:33:32 +01:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|