Skip to content

Commit

Permalink
fix: path resolving for webviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed May 1, 2024
1 parent a2e2fd8 commit 92966fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webview/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'path';

export default defineConfig({
base: './',
Expand All @@ -9,5 +10,12 @@ export default defineConfig({
minify: 'esbuild',
reportCompressedSize: false,
},
resolve: {
alias: {
'@Client': path.resolve(__dirname, '../src/main/client'),
'@Server': path.resolve(__dirname, '../src/main/server'),
'@Shared': path.resolve(__dirname, '../src/main/shared'),
},
},
plugins: [vue()],
});

0 comments on commit 92966fd

Please sign in to comment.