This commit is contained in:
Sean Edmunds
2024-12-06 15:33:58 -06:00
parent 00c141d8d7
commit 33813a34fb
48 changed files with 2188 additions and 420 deletions

View File

@@ -1,3 +1,4 @@
import path from 'node:path';
import react from '@vitejs/plugin-react';
import { defineConfig, loadEnv } from 'vite';
@@ -28,5 +29,15 @@ export default defineConfig(({ mode }) => {
},
},
},
resolve: {
alias: {
components: path.resolve(__dirname, './src/components'),
hooks: path.resolve(__dirname, './src/hooks'),
pages: path.resolve(__dirname, './src/pages'),
styles: path.resolve(__dirname, './src/styles'),
types: path.resolve(__dirname, './src/types'),
contexts: path.resolve(__dirname, './src/contexts'),
},
},
};
});