racemash/vite.config.ts

33 lines
769 B
TypeScript
Raw Normal View History

2023-05-23 08:19:09 +02:00
// Plugins
2023-05-23 10:05:36 +02:00
import vue from '@vitejs/plugin-vue';
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify';
import eslint from 'vite-plugin-eslint';
2023-05-23 08:19:09 +02:00
// Utilities
2023-05-23 10:05:36 +02:00
import { defineConfig } from 'vite';
import { fileURLToPath, URL } from 'node:url';
2023-05-23 08:19:09 +02:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
2023-05-23 10:05:36 +02:00
vue({
2023-05-23 08:19:09 +02:00
template: { transformAssetUrls }
}),
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
vuetify({
2023-05-23 10:05:36 +02:00
autoImport: true
2023-05-23 08:19:09 +02:00
}),
2023-05-23 10:05:36 +02:00
eslint()
2023-05-23 08:19:09 +02:00
],
define: { 'process.env': {} },
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
2023-05-23 10:05:36 +02:00
extensions: ['.js', '.json', '.jsx', '.mjs', '.ts', '.tsx', '.vue']
2023-05-23 08:19:09 +02:00
},
server: {
2023-05-23 10:05:36 +02:00
port: 3000
}
});