Clyde/frontend/vite.config.js

19 lines
386 B
JavaScript
Raw Normal View History

2024-02-17 20:48:14 +01:00
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
2024-03-07 14:51:36 +01:00
import topLevelAwait from 'vite-plugin-top-level-await'
2024-02-17 20:48:14 +01:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
2024-03-07 14:51:36 +01:00
topLevelAwait(),
2024-02-17 20:48:14 +01:00
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})