Add path alias for packages

This commit is contained in:
philipp lang 2023-12-25 18:38:32 +01:00
parent 2ecd4b9643
commit edb1eeb0d8
1 changed files with 6 additions and 0 deletions

6
vite.config.js vendored
View File

@ -1,6 +1,7 @@
import {defineConfig} from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';
import path from 'path';
export default defineConfig({
plugins: [
@ -24,4 +25,9 @@ export default defineConfig({
},
}),
],
resolve: {
alias: {
'!': path.resolve(__dirname, './packages'),
},
},
});