45 lines
977 B
TypeScript
45 lines
977 B
TypeScript
|
// Plugins
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
import vuetify, {transformAssetUrls} from 'vite-plugin-vuetify'
|
||
|
import ViteFonts from 'unplugin-fonts/vite'
|
||
|
|
||
|
// Utilities
|
||
|
import {defineConfig} from 'vite'
|
||
|
import {fileURLToPath, URL} from 'node:url'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
vue({
|
||
|
template: {transformAssetUrls},
|
||
|
}),
|
||
|
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
||
|
vuetify({
|
||
|
autoImport: true,
|
||
|
}),
|
||
|
ViteFonts({
|
||
|
google: {
|
||
|
families: [
|
||
|
{
|
||
|
name: 'Roboto',
|
||
|
styles: 'wght@100;300;400;500;700;900',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
}),
|
||
|
],
|
||
|
define: {'process.env': {}},
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||
|
},
|
||
|
extensions: ['.js', '.json', '.jsx', '.mjs', '.ts', '.tsx', '.vue'],
|
||
|
},
|
||
|
server: {
|
||
|
port: 3000,
|
||
|
},
|
||
|
preview: {
|
||
|
port: 3000,
|
||
|
}
|
||
|
})
|