Added the @ alias to the project vote.config.js & jsconfig.json

This commit is contained in:
Mathias Wagner 2023-05-08 20:09:07 +02:00
parent 51a1acae53
commit 224c93f0ae
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44
2 changed files with 14 additions and 0 deletions

8
client/jsconfig.json Normal file
View File

@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}

View File

@ -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')
}
}
});