1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-18 21:17:59 +00:00
rolens/frontend/vite.config.js

19 lines
496 B
JavaScript
Raw Normal View History

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