1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2024-11-22 10:25:48 +01:00
rolens/frontend/vite.config.js

19 lines
496 B
JavaScript
Raw Normal View History

2023-01-23 14:12:14 +01:00
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
2023-02-15 19:27:51 +01:00
import { dirname } from 'path';
import { fileURLToPath } from 'url';
const currentDir = dirname(fileURLToPath(import.meta.url));
2023-01-10 17:28:27 +01:00
export default defineConfig({
2023-01-23 14:12:14 +01:00
plugins: [ svelte() ],
2023-02-15 19:27:51 +01:00
resolve: {
alias: {
2023-08-07 18:21:45 +02:00
$components: currentDir + '/src/components',
$organisms: currentDir + '/src/organisms',
$wails: currentDir + '/wailsjs',
$lib: currentDir + '/src/lib',
2023-02-15 19:27:51 +01:00
},
},
2023-01-23 14:12:14 +01:00
});