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: {
|
|
|
|
'$components': currentDir + '/src/components',
|
|
|
|
'$organisms': currentDir + '/src/organisms',
|
|
|
|
'$wails': currentDir + '/wailsjs',
|
|
|
|
'$lib': currentDir + '/src/lib',
|
|
|
|
},
|
|
|
|
},
|
2023-01-23 13:12:14 +00:00
|
|
|
});
|