From 224c93f0ae28fb674fd77db4018a53f5e53fda49 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 8 May 2023 20:09:07 +0200 Subject: [PATCH] Added the @ alias to the project vote.config.js & jsconfig.json --- client/jsconfig.json | 8 ++++++++ client/vite.config.js | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 client/jsconfig.json diff --git a/client/jsconfig.json b/client/jsconfig.json new file mode 100644 index 0000000..babf8fb --- /dev/null +++ b/client/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + } +} \ No newline at end of file diff --git a/client/vite.config.js b/client/vite.config.js index 6b2481a..d011083 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -1,6 +1,12 @@ import { defineConfig } from 'vite'; +import * as path from 'path'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], + resolve: { + alias: { + '@': path.resolve(__dirname, './src') + } + } }); \ No newline at end of file