From 0133df143ef6006eef0819cac923001c0f7e5478 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 17 Apr 2023 22:05:01 +0200 Subject: [PATCH] Added aliases to the vite.config.js --- vite.config.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index 9ffcc67..d0d5b2b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,6 +1,14 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from 'vite'; +import path from 'path'; +import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], + resolve: { + alias: { + '@styles': path.resolve(__dirname, './src/common/styles'), + '@components': path.resolve(__dirname, './src/common/components'), + '@': path.resolve(__dirname, './src'), + } + } })