From edb1eeb0d885b25de8f06069487ed759a36d7178 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 25 Dec 2023 18:38:32 +0100 Subject: [PATCH] Add path alias for packages --- vite.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vite.config.js b/vite.config.js index 00246140..7827f8a9 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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'), + }, + }, });